mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-23 03:25:15 +00:00
parent
ee45a94ec6
commit
a2125ac567
|
@ -442,6 +442,11 @@ export function createBotSubStore(botId: string, botName: string) {
|
||||||
return Promise.resolve(data);
|
return Promise.resolve(data);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
if (axios.isAxiosError(error)) {
|
||||||
|
console.error(error.response);
|
||||||
|
const errMsg = error.response?.data?.detail ?? 'Error fetching history';
|
||||||
|
showAlert(errMsg, 'warning');
|
||||||
|
}
|
||||||
return Promise.reject(error);
|
return Promise.reject(error);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user