Skip to content

Commit

Permalink
fix: fix err msg parse
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed Nov 8, 2023
1 parent 76ec681 commit e57c8a7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cli/src/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,10 @@ export function hashHandler() {
.data
console.dir(adapterWithCorrectHash, { depth: null })
} catch (e) {
console.error('Adapter hash could not be computed. Reason:')
console.error(e.message)
console.error('Adapter hash could not be computed. Reason:');

Check failure on line 118 in cli/src/adapter.ts

View workflow job for this annotation

GitHub Actions / build-publish

Delete `;`
const errMsg = e?.response?.data?.message ? e.response.data.message : e.message;

Check failure on line 119 in cli/src/adapter.ts

View workflow job for this annotation

GitHub Actions / build-publish

Delete `;`

console.error(errMsg);

Check failure on line 121 in cli/src/adapter.ts

View workflow job for this annotation

GitHub Actions / build-publish

Delete `;`
}
}
return wrapper
Expand Down

0 comments on commit e57c8a7

Please sign in to comment.