atempt to read message too

This commit is contained in:
Evgenii Alekseev 2024-09-05 02:23:27 +03:00
parent 3d7dc45938
commit ab3b3c20c7

View File

@ -37,7 +37,7 @@
try { try {
details = JSON.parse(error.text).error; // execution handler json error response details = JSON.parse(error.text).error; // execution handler json error response
} catch (_) { } catch (_) {
details = error.text ?? error; details = error.text ?? error.message ?? error;
} }
createAlert(title, description(details), "text-bg-danger"); createAlert(title, description(details), "text-bg-danger");
} }