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

@@ -235,7 +235,7 @@ const CompositionPanel: FC = observer(() => {
},
async onopen(response) {
if (response.status !== 200) {
toast(response.statusText + '\n' + (await response.text()), {
toast(response.status + ' - ' + response.statusText + ' - ' + (await response.text()), {
type: 'error'
});
}