aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/reader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reader.c b/src/reader.c
index e0ffd816..5d4fc3c5 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -923,7 +923,7 @@ read_literal(SerdReader reader, Node* dest)
}
*dest = make_node(SERD_LITERAL, str, datatype.value, lang);
} else {
- *dest = make_node(SERD_CURIE, read_qname(reader), 0, 0);
+ return error(reader, "Unknown literal type\n");
}
return true;
except: