From: Stas Vilchik Date: Wed, 25 Oct 2017 13:00:26 +0000 (+0200) Subject: show error message when fail to skip onboarding X-Git-Tag: 6.7-RC1~19 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4507dcbe6143a6d12d5b2a56f960b580e38245a2;p=sonarqube.git show error message when fail to skip onboarding --- diff --git a/server/sonar-web/src/main/js/api/users.ts b/server/sonar-web/src/main/js/api/users.ts index f42c362fc74..2fb8213e139 100644 --- a/server/sonar-web/src/main/js/api/users.ts +++ b/server/sonar-web/src/main/js/api/users.ts @@ -18,6 +18,7 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import { getJSON, post, RequestData } from '../helpers/request'; +import throwGlobalError from '../app/utils/throwGlobalError'; export interface IdentityProvider { backgroundColor: string; @@ -62,6 +63,6 @@ export function searchUsers(query: string, pageSize?: number): Promise { return getJSON('/api/users/search', data); } -export function skipOnboarding(): Promise { - return post('/api/users/skip_onboarding_tutorial'); +export function skipOnboarding(): Promise { + return post('/api/users/skip_onboarding_tutorial').catch(throwGlobalError); }