Commit 271e8a8736baf5bd57ca35b46ffdc8d3980f1846

Authored by Marius Hanne
Committed by Julian Langschaedel
1 parent 69e38b5f1e

rescue all errors from command handler

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

lib/bitcoin/network/command_handler.rb
... ... @@ -47,7 +47,7 @@
47 47 respond(request, { error: "unknown command: #{request['method']}. send 'help' for help." })
48 48 end
49 49 end
50   - rescue ArgumentError
  50 + rescue
51 51 respond(request, { error: $!.message })
52 52 end
53 53 end