From cf728a2eb14cd7051871daa12f4bffda1776c60e Mon Sep 17 00:00:00 2001 From: Wieger Opmeer Date: Thu, 16 Apr 2015 18:53:46 +0200 Subject: [PATCH] Catch 404 not found as a real error I don't understand why this if has a special case for status_class(400).. It means that a 404 error becomes a empty response instead of a real error. --- lib/MojoX/JSON/RPC/Client.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MojoX/JSON/RPC/Client.pm b/lib/MojoX/JSON/RPC/Client.pm index af3439e..fff9e8d 100644 --- a/lib/MojoX/JSON/RPC/Client.pm +++ b/lib/MojoX/JSON/RPC/Client.pm @@ -108,7 +108,7 @@ sub _process_result { } # Check if RPC call is succesfull - if ( !( $tx_res->is_status_class(200) || $tx_res->is_status_class(400) ) ) + if ( !( $tx_res->is_status_class(200) ) ) { return; }