Skip to content

Commit

Permalink
Display flash messages in multiple lines
Browse files Browse the repository at this point in the history
  • Loading branch information
h-kataria committed May 16, 2016
1 parent 024a8b0 commit aa5ea9f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/app/states/marketplace/details/details.state.js
Expand Up @@ -102,7 +102,10 @@
}

function addFailure(result) {
Notifications.error(__('There was an error adding to shopping cart: ') + result);
var errors = result.split(",");
for (var i = 0; i<errors.length; ++i) {
Notifications.error(__("There was an error adding to shopping cart: ") + errors[i]);
}
}
}
}
Expand Down

0 comments on commit aa5ea9f

Please sign in to comment.