mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 03:12:15 +00:00
✨ Show activation error details for trigger nodes (#1787)
* ⚡ Implement error details in toast notification * ⚡ Refactor error notification * ⚡ Pipe activation error in prod mode to FE * ⚡ Add node name to activation error details * ⚡ Disable ignoring with ts-check * 📝 fix spelling Co-authored-by: Ben Hesseldieck <b.hesseldieck@gmail.com>
This commit is contained in:
@@ -93,6 +93,10 @@ export function sendErrorResponse(res: Response, error: ResponseError) {
|
||||
message: 'Unknown error',
|
||||
};
|
||||
|
||||
if (error.name === 'NodeApiError') {
|
||||
Object.assign(response, error);
|
||||
}
|
||||
|
||||
if (error.errorCode) {
|
||||
response.code = error.errorCode;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user