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

@@ -117,12 +117,10 @@ export default class ProjectsView extends Vue {
projects: { handleId: string; name: string; description: string }[] = [];
onClickLoadProject(id: string) {
console.log("projectId", id);
localStorage.setItem("projectId", id);
const route = {
name: "project",
};
console.log(route);
this.$router.push(route);
}
@@ -151,7 +149,7 @@ export default class ProjectsView extends Vue {
}
}
} catch (error) {
console.log(error);
console.error("Got error loading projects: ", error);
}
}
@@ -165,7 +163,7 @@ export default class ProjectsView 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);
@@ -179,7 +177,6 @@ export default class ProjectsView extends Vue {
const route = {
name: "new-edit-project",
};
console.log(route);
this.$router.push(route);
}
}