diff --git a/contrib/refund/src/refund_json.nit b/contrib/refund/src/refund_json.nit index a049b5d9bc..5be7b05afb 100644 --- a/contrib/refund/src/refund_json.nit +++ b/contrib/refund/src/refund_json.nit @@ -90,6 +90,7 @@ redef class RefundProcessor fun write_output(str: String, file: String) do var ofs = new FileWriter.open(file) ofs.write(str) + ofs.write("\n") ofs.close end diff --git a/contrib/refund/tests/res/json_error1.res b/contrib/refund/tests/res/json_error1.res index 958aa8db6c..e7eb308d82 100644 --- a/contrib/refund/tests/res/json_error1.res +++ b/contrib/refund/tests/res/json_error1.res @@ -1,3 +1,3 @@ { - "message": "Wrong input file (Unexpected Eof; is acceptable instead: value)" + "message": "Wrong input file (Empty JSON)" } diff --git a/contrib/refund/tests/res/json_error3.res b/contrib/refund/tests/res/json_error3.res index d35b98219a..83de0af287 100644 --- a/contrib/refund/tests/res/json_error3.res +++ b/contrib/refund/tests/res/json_error3.res @@ -1,3 +1,3 @@ { - "message": "Wrong input file (Unexpected Eof; is acceptable instead: members, pair)" + "message": "Wrong input file (Malformed JSON object)" }