From cc2dca3bd0093f02c33e9a4d7489906bc8758c8d Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Mon, 27 Apr 2020 16:32:30 -0400 Subject: [PATCH] Report missing support when trying to parse unknown format. --- platform-independent/c/core/src/mpw-marshal.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform-independent/c/core/src/mpw-marshal.c b/platform-independent/c/core/src/mpw-marshal.c index 63f37880..80b4469b 100644 --- a/platform-independent/c/core/src/mpw-marshal.c +++ b/platform-independent/c/core/src/mpw-marshal.c @@ -1097,6 +1097,8 @@ MPMarshalledFile *mpw_marshal_read( info->format = MPMarshalFormatJSON; #if MPW_JSON mpw_marshal_read_json( file, in ); +#else + mpw_marshal_error( file, MPMarshalErrorFormat, "JSON support is not enabled." ); #endif } }