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

@@ -175,7 +175,6 @@ export default class ProjectViewView extends Vue {
const route = {
name: "new-edit-project",
};
console.log(route);
this.$router.push(route);
}
@@ -200,7 +199,6 @@ export default class ProjectViewView extends Vue {
try {
const resp = await this.axios.get(url, { headers });
console.log("resp.status, resp.data", resp.status, resp.data);
if (resp.status === 200) {
const startTime = resp.data.startTime;
if (startTime != null) {
@@ -223,7 +221,7 @@ export default class ProjectViewView extends Vue {
this.errorMessage =
"Something went wrong retrieving that project." +
" See logs for more info.";
console.log("Error retrieving project:", error);
console.error("Error retrieving project:", error);
}
}
}
@@ -238,7 +236,7 @@ export default class ProjectViewView extends Vue {
await accountsDB.open();
const num_accounts = await accountsDB.accounts.count();
if (num_accounts === 0) {
console.log("Problem! Should have a profile!");
console.error("Problem! Should have a profile!");
} else {
const accounts = await accountsDB.accounts.toArray();
const account = R.find((acc) => acc.did === activeDid, accounts);