mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(core): Return correct error message if Axios error (#3478)
This commit is contained in:
@@ -290,6 +290,12 @@ export class NodeApiError extends NodeError {
|
||||
// only for request library error
|
||||
this.removeCircularRefs(error.error as JsonObject);
|
||||
}
|
||||
// if it's an error generated by axios
|
||||
// look for descriptions in the response object
|
||||
if (error.isAxiosError) {
|
||||
error = error.response as JsonObject;
|
||||
}
|
||||
|
||||
if (message) {
|
||||
this.message = message;
|
||||
this.description = description;
|
||||
|
||||
Reference in New Issue
Block a user