[ui] better error message on raw open fail
This commit is contained in:
parent
2173ca5b51
commit
7673f6d74a
1 changed files with 2 additions and 2 deletions
|
@ -50,9 +50,9 @@
|
|||
)
|
||||
);
|
||||
fetch(`/api/raw/${address}?native=1`)
|
||||
.then((response) => {
|
||||
.then(async (response) => {
|
||||
if (!response.ok) {
|
||||
throw new Error(response.statusText);
|
||||
throw new Error(`${response.statusText} - ${await response.text()}`);
|
||||
}
|
||||
if (response.headers.has("warning")) {
|
||||
const warningText = response.headers
|
||||
|
|
Loading…
Reference in a new issue