Skip to content

Commit

Permalink
add data to error message
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid committed Sep 24, 2015
1 parent f3c3c1f commit 05c3ca9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "bitcoind-rpc-client",
"version": "0.2.0",
"version": "0.2.1",
"description": "Bitcoind RPC client",
"keywords": [
"bitcoin",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -147,7 +147,7 @@ export default class RpcClient extends Methods {
resolve(parsed)
} catch (err) {
reject(new Error(
`${requestErrorMsg}Error Parsing JSON: ${err.message}`))
`${requestErrorMsg}Error Parsing JSON: ${err.message}, data: ${data}`))
}
})
})
Expand Down
2 changes: 1 addition & 1 deletion src/methods.js
Expand Up @@ -46,7 +46,7 @@ let methods = [
'ping',
'setban',

// == Rawtransactions ==
// == Raw Transactions ==
'createRawTransaction',
'decodeRawTransaction',
'decodeScript',
Expand Down

0 comments on commit 05c3ca9

Please sign in to comment.