From 760b01e8dbad054919fe766112b52d0b9cfb2d32 Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Tue, 22 May 2018 10:33:48 +0200 Subject: Fix api error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- settings/src/store/index.js | 2 -- 1 file changed, 2 deletions(-) (limited to 'settings') diff --git a/settings/src/store/index.js b/settings/src/store/index.js index 0fdcbe25cec..4332ece33e4 100644 --- a/settings/src/store/index.js +++ b/settings/src/store/index.js @@ -12,9 +12,7 @@ const mutations = { API_FAILURE(state, error) { let message = error.error.response.data.ocs.meta.message; OC.Notification.showHtml(t('settings','An error occured during the request. Unable to proceed.')+'
'+message, {timeout: 7}); - // throw to raise exception of the promise and allow a `.then` in the Vue methods console.log(state, error); - throw new Error(error); } }; -- cgit v1.2.3