Improve error messages

This commit is contained in:
Paul Frazee
2022-11-15 10:46:12 -06:00
parent f2bf75e85e
commit 020a0bc882
15 changed files with 156 additions and 32 deletions
+7
View File
@@ -96,3 +96,10 @@ export function enforceLen(str: string, len: number): string {
}
return str
}
export function cleanError(str: string): string {
if (str.startsWith('Error: ')) {
return str.slice('Error: '.length)
}
return str
}