secondbrainos-mcp-server 1.4.4 → 1.4.5
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/build/index.js +2 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -165,7 +165,8 @@ class SecondBrainOSServer {
|
|
|
165
165
|
// Better error handling with HttpLlm
|
|
166
166
|
if (axios.isAxiosError(error)) {
|
|
167
167
|
const status = error.response?.status;
|
|
168
|
-
const
|
|
168
|
+
const rawError = error.response?.data?.error || error.response?.data?.message || error.message;
|
|
169
|
+
const errorMessage = typeof rawError === 'object' ? JSON.stringify(rawError) : rawError;
|
|
169
170
|
let mcpError;
|
|
170
171
|
switch (status) {
|
|
171
172
|
case 401:
|