mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-14 22:17:20 +00:00
refactor(powershell): standardize placeholders and improve error handling
This commit is contained in:
1 parent
739895a29e
commit
fd8fec20d7
3 files changed
+53
-40
No files matched your search
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user