mirror of
https://github.com/Open-Argon/argon-v3.git
synced 2025-12-06 08:56:07 +00:00
fix json parse not throwing error when incorrect
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user