cartographer-ai 1.0.11 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/cartographer.js +6 -8
package/package.json
CHANGED
package/src/cartographer.js
CHANGED
|
@@ -90,16 +90,14 @@ export class Cartographer {
|
|
|
90
90
|
},
|
|
91
91
|
});
|
|
92
92
|
} catch (error) {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}\x1b[0m`;
|
|
93
|
+
const errorMessage = `\x1b[31m${
|
|
94
|
+
error?.response?.data?.error ?? "Unexpected error occured"
|
|
95
|
+
}\x1b[0m`;
|
|
97
96
|
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
const err = new Error(errorMessage);
|
|
98
|
+
err.stack = "";
|
|
100
99
|
|
|
101
|
-
|
|
102
|
-
}
|
|
100
|
+
throw err;
|
|
103
101
|
}
|
|
104
102
|
}
|
|
105
103
|
|