refactor(powershell): standardize placeholders and improve error handling

This commit is contained in:
kaitranntt committed 2025-11-24 10:45:43 -05:00
1 parent 739895a29e
commit fd8fec20d7
3 files changed
+53 -40

No files matched your search

+2 -1
View File
@@ -36,7 +36,8 @@ $script:E_INVALID_STATE = "E901"
# Get error documentation URL
function Get-ErrorDocUrl {
param([string]$ErrorCode)
return "https://github.com/kaitranntt/ccs/blob/main/docs/errors/README.md#$($ErrorCode.ToLower())"
$LowerCode = $ErrorCode.ToLower()
return "https://github.com/kaitranntt/ccs/blob/main/docs/errors/README.md#$LowerCode"
}
# Get error category from code