prefer console.error messages for errors

This commit is contained in:
2023-05-28 07:10:00 -06:00
parent 0ce06bd9ac
commit 32351b07b7
10 changed files with 23 additions and 31 deletions

View File

@@ -437,7 +437,7 @@ export default class AccountViewView extends Vue {
} catch (err) {
this.alertMessage =
"Clear your cache and start over (after data backup). See console log for more info.";
console.log("Telling user to clear cache because:", err);
console.error("Telling user to clear cache because:", err);
this.alertTitle = "Error Creating Account";
this.isAlertVisible = true;
}
@@ -452,7 +452,7 @@ export default class AccountViewView extends Vue {
} catch (err) {
this.alertMessage =
"Clear your cache and start over (after data backup). See console log for more info.";
console.log("Telling user to clear cache because:", err);
console.error("Telling user to clear cache because:", err);
this.alertTitle = "Error Creating Account";
this.isAlertVisible = true;
}
@@ -503,7 +503,7 @@ export default class AccountViewView extends Vue {
const serverError = error as AxiosError;
this.alertTitle = "Error from Server";
console.log("Bad response retrieving limits: ", serverError);
console.error("Bad response retrieving limits: ", serverError);
// Anybody know how to access items inside "response.data" without this?
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const data: any = serverError.response?.data;