We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bb033c commit 5daa3fcCopy full SHA for 5daa3fc
src/lib/helper.ts
@@ -25,6 +25,20 @@ export interface FormattedError {
25
*/
26
export const printFormattedError = (error: FormattedError, context: string) => {
27
const errorCode = error?.error_code || "UNKNOWN_ERROR";
28
+ // Special handling for our numeric identifier validation errors
29
+ if (
30
+ errorCode === "VALIDATION_ERROR" &&
31
+ error?.error_message &&
32
+ error.error_message.includes("numeric identifiers")
33
+ ) {
34
+ // Just print our detailed message as-is, no extra formatting
35
+ cliux.print(error.error_message, {
36
+ color: "red",
37
+ bold: true,
38
+ });
39
+ return;
40
+ }
41
+
42
let errorMessage = "An unexpected error occurred";
43
let hint = "";
44
0 commit comments