Skip to content

Commit

Permalink
fix frontend error message for file not found
Browse files Browse the repository at this point in the history
  • Loading branch information
slavas490 committed Feb 26, 2024
1 parent 17b51b6 commit 2a20879
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ui/core/src/components/document/VerificationFileEntry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,13 @@ export default {
this.isFileInvalidated = false
const result = await this.wallet().verifyHash(this.hash)
let result
try {
result = await this.wallet().verifyHash(this.hash)
} catch (e) {
throw new Error('UNABLE_TO_VERIFY_HASH')
}
const transaction = await this.wallet().web3.eth.getTransaction(result)
this.creator = transaction.from
Expand Down Expand Up @@ -330,6 +336,8 @@ export default {
if (this.wallet().isPublicRPCUsing) {
this.errorPublicRPC = true
} else if (e?.message === 'UNABLE_TO_VERIFY_HASH') {
this.validationException = false
} else {
this.errorValidating = true
}
Expand Down

0 comments on commit 2a20879

Please sign in to comment.