fix json parse not throwing error when incorrect

This commit is contained in:
2024-04-05 19:40:57 +02:00
parent 82aae37479
commit bf15b435c2
3 changed files with 7 additions and 6 deletions

View File

@@ -70,7 +70,7 @@ func ArRead(args ...any) (any, ArErr) {
if err != nil {
return ArObject{}, ArErr{TYPE: "Runtime Error", message: err.Error(), EXISTS: true}
}
return jsonparse(text), ArErr{}
return jsonparse(text)
}},
"contentType": builtinFunc{"contentType", func(...any) (any, ArErr) {
file.Seek(0, io.SeekStart)