forked from jsnbuchanan/crowd-funder-for-time-pwa
add more debug information on errors caught from server
This commit is contained in:
@@ -8,8 +8,10 @@
|
||||
here.
|
||||
</p>
|
||||
<p class="mt-2">
|
||||
If the link looks correct, try Chrome. (For example, iOS Safari does not
|
||||
work well with the invite link.)
|
||||
If the link looks correct, try Chrome. (For example, iOS may have cut
|
||||
off the invite data, or it may have shown a preview that stole your
|
||||
invite.) If it still complains, you may need the person who invited you
|
||||
to send a new one.
|
||||
</p>
|
||||
<textarea
|
||||
v-model="inputJwt"
|
||||
@@ -42,8 +44,13 @@ import { Router } from "vue-router";
|
||||
|
||||
import QuickNav from "@/components/QuickNav.vue";
|
||||
import { NotificationIface } from "@/constants/app";
|
||||
import { db, retrieveSettingsForActiveAccount } from "@/db/index";
|
||||
import {
|
||||
db,
|
||||
logConsoleAndDb,
|
||||
retrieveSettingsForActiveAccount,
|
||||
} from "@/db/index";
|
||||
import { decodeEndorserJwt } from "@/libs/crypto/vc";
|
||||
import { errorStringForLog } from "@/libs/endorserServer";
|
||||
import { generateSaveAndActivateIdentity } from "@/libs/util";
|
||||
|
||||
@Component({ components: { QuickNav } })
|
||||
@@ -124,7 +131,8 @@ export default class InviteOneAcceptView extends Vue {
|
||||
});
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("Error accepting invite:", error);
|
||||
const fullError = "Error accepting invite: " + errorStringForLog(error);
|
||||
logConsoleAndDb(fullError, true);
|
||||
if (notifyOnFailure) {
|
||||
this.$notify(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user