From 01daa5914169d57a6a6c4925d3f8d76db80a2bd8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 28 Apr 2019 16:36:02 +0200 Subject: Report writer errors and add strict write mode --- src/string.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/string.c') diff --git a/src/string.c b/src/string.c index e3d20b15..f0aca005 100644 --- a/src/string.c +++ b/src/string.c @@ -58,6 +58,10 @@ serd_strerror(SerdStatus status) return "Stack overflow"; case SERD_ERR_NO_DATA: return "Unexpectd end of input"; + case SERD_ERR_BAD_TEXT: + return "Invalid text encoding"; + case SERD_ERR_BAD_WRITE: + return "Error writing to file"; default: break; } -- cgit v1.2.1