forked from jsnbuchanan/crowd-funder-for-time-pwa
prefer console.error messages for errors
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user