improve error messages

This commit is contained in:
josc146
2024-03-26 21:29:21 +08:00
parent 0ab248c478
commit 253568ef29
4 changed files with 10 additions and 5 deletions

View File

@@ -494,7 +494,7 @@ const AudiotrackEditor: FC<{ setPrompt: (prompt: string) => void }> = observer((
commonStore.setTracks(tracks);
refreshTracksTotalTime();
} else {
toast(r.statusText + '\n' + (await r.text()), {
toast('Failed to fetch - ' + r.status + ' - ' + r.statusText + ' - ' + (await r.text()), {
type: 'error'
});
}