updated the error message when an error is encountered reading a json file.