diff options
-rw-r--r-- | src/reader.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/reader.c b/src/reader.c index 788d0a74..f106c87c 100644 --- a/src/reader.c +++ b/src/reader.c @@ -1225,10 +1225,8 @@ read_object(SerdReader* reader, ReadContext* ctx, bool emit, bool* ate_dot) } } switch (c) { - case '\0': - return r_err(reader, SERD_ERR_BAD_SYNTAX, "end of file in object\n"); - case ')': - return false; + case '\0': case ')': + return r_err(reader, SERD_ERR_BAD_SYNTAX, "expected object\n"); case '[': simple = false; TRY_THROW(ret = read_anon(reader, *ctx, false, &o)); |