Improve error message
This commit is contained in:
@@ -55,13 +55,12 @@ export default Component.extend({
|
|||||||
this.set('inProgress', true);
|
this.set('inProgress', true);
|
||||||
|
|
||||||
this.save(attributes)
|
this.save(attributes)
|
||||||
.then(contribution => {
|
.then((/*contribution*/) => {
|
||||||
console.debug('contribution', contribution);
|
|
||||||
this.reset();
|
this.reset();
|
||||||
window.scroll(0,0);
|
window.scroll(0,0);
|
||||||
}, err => {
|
}, err => {
|
||||||
console.warn(err);
|
console.warn(err);
|
||||||
window.alert('Fail');
|
window.alert('Something went wrong. Check the browser console for details.');
|
||||||
})
|
})
|
||||||
.finally(() => this.set('inProgress', false));
|
.finally(() => this.set('inProgress', false));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user