return error to browser rfid-vm
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 14 Apr 2014 13:06:25 +0000 (15:06 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 14 Apr 2014 13:06:25 +0000 (15:06 +0200)
scripts/RFID-JSONP-server.pl

index 76aa261..165dfdf 100755 (executable)
@@ -203,6 +203,7 @@ sub http_server {
 
            }; # end of eval
            if ( $@ ) {
+               print $client "HTTP/1.0 500 Error\r\n\r\nContent-Type: text/plain\r\n$@";
                warn "ERROR: $@";
            }