Skip to content

Commit

Permalink
Add more descriptive error messages (#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
Schwartz10 committed Apr 6, 2020
1 parent 5dbcd78 commit fc086e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions utils/ledger/reportLedgerConfigError.js
Expand Up @@ -10,8 +10,10 @@ export const reportLedgerConfigError = ({
if (connectedFailure) return 'Is your Ledger device plugged in?'
if (busy) return 'Is your Ledger device busy?'
if (ledgerLocked) return 'Is your Ledger device unlocked?'
if (filecoinAppNotOpen) return 'Is the Filecoin App open on your device?'
if (replug) return 'Please unplug and replug your device, and try again.'
if (filecoinAppNotOpen)
return 'Is the Filecoin App open on your Ledger device?'
if (replug)
return 'Please unplug and replug your Ledger device, and try again.'
if (inUseByAnotherApp)
return 'Please quit any other App using your Ledger device.'
if (otherError) return otherError && otherError.message
Expand Down

0 comments on commit fc086e2

Please sign in to comment.