[IMP] point_of_sale: log error message too

It's needed in phantomjs tests.

Without this commit it printed only error stack, which doesn't provide enough
information to fix it. This is a problem when the error is not reproduced on
running tours manually in browser.
This commit is contained in:
Ivan Yelizariev
2017-11-29 12:43:09 +01:00
committed by Pierre Masereel
parent 59a5dfefa8
commit 6ba492fb09
+1 -1
View File
@@ -515,7 +515,7 @@ exports.PosModel = Backbone.Model.extend({
.then(function(){ load_model(index + 1); },
function(err){ loaded.reject(err); });
}catch(err){
console.error(err.stack);
console.error(err.message, err.stack);
loaded.reject(err);
}
},function(err){