Skip to content

Commit

Permalink
Fix cli adapter hash error msg (#898)
Browse files Browse the repository at this point in the history
* fix: fix err msg parse

* fix: fix typo
  • Loading branch information
nick-bisonai authored Nov 8, 2023
1 parent 3a0cec1 commit b9ff704
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cli/src/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ export function hashHandler() {
console.dir(adapterWithCorrectHash, { depth: null })
} catch (e) {
console.error('Adapter hash could not be computed. Reason:')
console.error(e.message)
const errMsg = e?.response?.data?.message ? e.response.data.message : e.message

console.error(errMsg)
}
}
return wrapper
Expand Down

0 comments on commit b9ff704

Please sign in to comment.