mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 18:23:50 +00:00
parent
ee45a94ec6
commit
a2125ac567
|
@ -442,6 +442,11 @@ export function createBotSubStore(botId: string, botName: string) {
|
|||
return Promise.resolve(data);
|
||||
} catch (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);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user