|
@ -64,6 +64,7 @@ import { accessToken, SimpleSigner } from "@/libs/crypto"; |
|
|
import * as didJwt from "did-jwt"; |
|
|
import * as didJwt from "did-jwt"; |
|
|
import { IIdentifier } from "@veramo/core"; |
|
|
import { IIdentifier } from "@veramo/core"; |
|
|
import { useAppStore } from "@/store/app"; |
|
|
import { useAppStore } from "@/store/app"; |
|
|
|
|
|
import { AxiosError } from "axios"; |
|
|
|
|
|
|
|
|
interface VerifiableCredential { |
|
|
interface VerifiableCredential { |
|
|
"@context": string; |
|
|
"@context": string; |
|
@ -189,9 +190,9 @@ export default class NewEditProjectView extends Vue { |
|
|
this |
|
|
this |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
} catch (error: any) { |
|
|
} catch (error: unknown) { |
|
|
let userMessage = "There was an error. See logs for more info."; |
|
|
let userMessage = "There was an error. See logs for more info."; |
|
|
const serverError = error.response?.data?.error; |
|
|
const serverError = error.response?.data?.error as AxiosError; |
|
|
if (serverError) { |
|
|
if (serverError) { |
|
|
if (serverError.message) { |
|
|
if (serverError.message) { |
|
|
userMessage = serverError.message; // This is info for the user. |
|
|
userMessage = serverError.message; // This is info for the user. |
|
|