#721040 better error message when STDIN is closed

Package:
libjson-xs-perl
Source:
libjson-xs-perl
Description:
module for manipulating JSON-formatted data (C/XS-accelerated)
Submitter:
Date:
2013-08-27 13:21:05 UTC
Severity:
wishlist
#721040#5
Date:
2013-08-27 13:16:56 UTC
From:
To:
Can you kindly print out a better message if one does

$ json_xs file.json < /dev/null
malformed JSON string, neither array, object, number, string or atom, at
character offset 0 (before "(end of string)") at /usr/bin/json_xs line
177, <STDIN> line 1.

That would prevent hours of head scratching.

Yes the user is supposed to do
$ json_xs < file.json

But if he forgets the <, and STDIN in closed, e.g., emacs M-x compile,
then he will go on the wild goose chase trying to figure out what went wrong.