From 9a98b37bb6611d1c3948ca708623e3a2fdc347f6 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Thu, 23 May 2019 10:29:31 +0200 Subject: [PATCH] Improve error message --- app/components/add-contribution/component.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/components/add-contribution/component.js b/app/components/add-contribution/component.js index 205e8f1..0c73016 100644 --- a/app/components/add-contribution/component.js +++ b/app/components/add-contribution/component.js @@ -55,13 +55,12 @@ export default Component.extend({ this.set('inProgress', true); this.save(attributes) - .then(contribution => { - console.debug('contribution', contribution); + .then((/*contribution*/) => { this.reset(); window.scroll(0,0); }, err => { console.warn(err); - window.alert('Fail'); + window.alert('Something went wrong. Check the browser console for details.'); }) .finally(() => this.set('inProgress', false));