diff options
author | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2018-01-17 11:29:05 +0100 |
---|---|---|
committer | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2018-01-25 15:16:50 +0100 |
commit | df96a05cc325b2946c25ee8277f64638ed72288c (patch) | |
tree | ca28960f1a7fc514e0b1d6e5b90d1f46a6c45ffd /server/sonar-web/src/main/js/api/time-machine.ts | |
parent | 49391d2eff65209068acc31e41393b9617fb2458 (diff) | |
download | sonarqube-df96a05cc325b2946c25ee8277f64638ed72288c.tar.gz sonarqube-df96a05cc325b2946c25ee8277f64638ed72288c.zip |
Migrate parts of overview app to TS
Diffstat (limited to 'server/sonar-web/src/main/js/api/time-machine.ts')
-rw-r--r-- | server/sonar-web/src/main/js/api/time-machine.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/api/time-machine.ts b/server/sonar-web/src/main/js/api/time-machine.ts index e6c01eba852..2f25912b191 100644 --- a/server/sonar-web/src/main/js/api/time-machine.ts +++ b/server/sonar-web/src/main/js/api/time-machine.ts @@ -19,6 +19,7 @@ */ import { getJSON } from '../helpers/request'; import { Paging } from '../app/types'; +import throwGlobalError from '../app/utils/throwGlobalError'; export interface HistoryItem { date: Date; @@ -47,7 +48,7 @@ export function getTimeMachineData( metrics: metrics.join(), ps: 1000, ...other - }); + }).catch(throwGlobalError); } export function getAllTimeMachineData( |