Index: background.js |
=================================================================== |
--- a/background.js |
+++ b/background.js |
@@ -370,9 +370,9 @@ |
case "add-filters": |
var result = parseFilters(msg.text); |
- if (result.error) |
+ if (result.errors.length > 0) |
{ |
- sendResponse({status: "invalid", error: result.error}); |
+ sendResponse({status: "invalid", error: result.errors.join("\n")}); |
break; |
} |