Index: messageResponder.js |
=================================================================== |
--- a/messageResponder.js |
+++ b/messageResponder.js |
@@ -269,7 +269,15 @@ |
for (let error of result.errors) |
{ |
if (error.type != "unexpected-filter-list-header") |
- errors.push(error.toString()); |
+ { |
+ // passing along all the info available through the error object |
+ // in case we'll ever need these extra info in the future |
+ errors.push({ |
+ lineno: error.lineno, |
+ reason: error.reason, |
+ type: error.type |
+ }); |
+ } |
} |
if (errors.length > 0) |