Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix(onboarding): properly identify macaroon errors
Browse files Browse the repository at this point in the history
Ensure that an error caused by an invalid macaroon is properly
categorised as a macaroon error and not a host error.
  • Loading branch information
mrfelton committed Jan 6, 2019
1 parent b41caa9 commit 3596f18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/lib/zap/controller.js
Expand Up @@ -205,7 +205,8 @@ class ZapController {
// There was a problem accessing the macaroon file.
else if (
e.code === 'LND_GRPC_MACAROON_ERROR' ||
e.message.includes('cannot determine data format of binary-encoded macaroon')
e.message.includes('cannot determine data format of binary-encoded macaroon') ||
e.message.includes('verification failed: signature mismatch after caveat verification')
) {
errors.macaroon = e.message
}
Expand Down

0 comments on commit 3596f18

Please sign in to comment.