diff options
Diffstat (limited to 'server/sonar-web/src/main/js/api/components.js')
-rw-r--r-- | server/sonar-web/src/main/js/api/components.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/api/components.js b/server/sonar-web/src/main/js/api/components.js index 867100c4fae..e024ce947f5 100644 --- a/server/sonar-web/src/main/js/api/components.js +++ b/server/sonar-web/src/main/js/api/components.js @@ -19,6 +19,7 @@ */ // @flow import { getJSON, postJSON, post } from '../helpers/request'; +import throwGlobalError from '../app/utils/throwGlobalError'; export function getComponents(data?: Object) { const url = '/api/projects/search'; @@ -55,7 +56,7 @@ export function createProject( } ) { const url = '/api/projects/create'; - return postJSON(url, data); + return postJSON(url, data).catch(throwGlobalError); } export function searchProjectTags(data?: { ps?: number, q?: string }) { |