kraken_ruby icon indicating copy to clipboard operation
kraken_ruby copied to clipboard

Improve error handling

Open nextpulse opened this issue 7 years ago • 0 comments

Currently, the only way to check for error is to look at the content of the returned string. Not always easy, assume you need to know the actual content of the error.

kraken_ruby/lib/kraken_ruby/client.rb: r['error'].empty? ? r['result'] : r['error']

Maybe just throw an exception or return the complete json and let the app look for error field?

nextpulse avatar Jul 03 '18 15:07 nextpulse