From 96e5099d334635a7444b44cca4864123710546c0 Mon Sep 17 00:00:00 2001 From: Jack May Date: Thu, 9 Apr 2020 09:48:18 -0700 Subject: [PATCH] fix: feedback --- web3.js/src/connection.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/web3.js/src/connection.js b/web3.js/src/connection.js index f13a524aa2..df018f6971 100644 --- a/web3.js/src/connection.js +++ b/web3.js/src/connection.js @@ -879,8 +879,7 @@ export class Connection { .then(x => x.value) .catch(e => { throw new Error( - 'failed to get balance of account ' + publicKey.toBase58() + ': ' + - e, + 'failed to get balance of account ' + publicKey.toBase58() + ': ' + e, ); }); } @@ -897,7 +896,7 @@ export class Connection { const res = GetAccountInfoAndContextRpcResult(unsafeRes); if (res.error) { throw new Error( - 'failed info about account ' + + 'failed to get info about account ' + publicKey.toBase58() + ': ' + res.error.message, @@ -935,7 +934,7 @@ export class Connection { .then(x => x.value) .catch(e => { throw new Error( - 'failed info about account ' + publicKey.toBase58() + ': ' + e, + 'failed to get info about account ' + publicKey.toBase58() + ': ' + e, ); }); } @@ -954,7 +953,7 @@ export class Connection { const res = GetProgramAccountsRpcResult(unsafeRes); if (res.error) { throw new Error( - 'failed info about account ' + + 'failed to get accounts owned by program ' + programId.toBase58() + ': ' + res.error.message,