mirror of
https://github.com/coalaura/whiskr.git
synced 2025-12-02 20:22:52 +00:00
log errors
This commit is contained in:
@@ -1255,6 +1255,8 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.error(err);
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
type: "error",
|
type: "error",
|
||||||
data: err.message,
|
data: err.message,
|
||||||
@@ -1592,6 +1594,8 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.error(err);
|
||||||
|
|
||||||
notify(err);
|
notify(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2296,6 +2300,8 @@
|
|||||||
|
|
||||||
download("request.json", "application/json", JSON.stringify(dumped.request, null, 4));
|
download("request.json", "application/json", JSON.stringify(dumped.request, null, 4));
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
console.error(err);
|
||||||
|
|
||||||
notify(err);
|
notify(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2335,6 +2341,8 @@
|
|||||||
|
|
||||||
$authentication.classList.remove("open");
|
$authentication.classList.remove("open");
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
console.error(err);
|
||||||
|
|
||||||
$authError.textContent = `Error: ${err.message}`;
|
$authError.textContent = `Error: ${err.message}`;
|
||||||
$authentication.classList.add("errored");
|
$authentication.classList.add("errored");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user