From 0d8fbef5d66fe5ffc62cc128887dce9e49bd075f Mon Sep 17 00:00:00 2001 From: Tim Robinson Date: Fri, 18 Sep 2015 11:02:50 +0000 Subject: [PATCH] It could be the scope breaking it --- plugins/c9.error/error_handler.js | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/c9.error/error_handler.js b/plugins/c9.error/error_handler.js index 27b51b7a..19d8052e 100644 --- a/plugins/c9.error/error_handler.js +++ b/plugins/c9.error/error_handler.js @@ -125,6 +125,7 @@ function plugin(options, imports, register) { } catch (e) { console.error("Cannot send error as JSON: ", error); error.message = "Unspecified error"; + error.scope = null; } res.json({ error: error }, null, statusCode); // plain text