From fa9ecb4d6c29afa00cc03493b835a232649950ae Mon Sep 17 00:00:00 2001 From: Engeniy Filatov Date: Tue, 17 Sep 2013 11:52:26 +0400 Subject: [PATCH] improved error handling --- i-bem/__json/i-bem__json.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i-bem/__json/i-bem__json.js b/i-bem/__json/i-bem__json.js index 2e80b9e..01674de 100644 --- a/i-bem/__json/i-bem__json.js +++ b/i-bem/__json/i-bem__json.js @@ -545,7 +545,7 @@ if (typeof BEM === 'undefined') { * Default handler for errors in decls */ _declErrorHandler: function (err) { - console.error(err); + console.error(err instanceof Error ? err.stack : err); } }; BEM.JSON = {