[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:
committed by
Pierre Masereel
parent
59a5dfefa8
commit
6ba492fb09
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user