diff options
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( |