aboutsummaryrefslogtreecommitdiffstats
path: root/src/string.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-07-09 21:25:23 -0400
committerDavid Robillard <d@drobilla.net>2022-01-13 23:04:11 -0500
commite0e5b83f30b784699a5ae039e8ae7e1dd69410d4 (patch)
tree8d5e63e2d09373de4d3db59038020948c4321dd2 /src/string.c
parentd8e718453cf7a29045b648683b0645094bc66ae9 (diff)
downloadserd-e0e5b83f30b784699a5ae039e8ae7e1dd69410d4.tar.gz
serd-e0e5b83f30b784699a5ae039e8ae7e1dd69410d4.tar.bz2
serd-e0e5b83f30b784699a5ae039e8ae7e1dd69410d4.zip
Improve writer error handling
Diffstat (limited to 'src/string.c')
-rw-r--r--src/string.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/string.c b/src/string.c
index 842beeef..8393a3fb 100644
--- a/src/string.c
+++ b/src/string.c
@@ -52,6 +52,10 @@ serd_strerror(const SerdStatus status)
return "Internal error";
case SERD_ERR_OVERFLOW:
return "Stack overflow";
+ case SERD_ERR_BAD_TEXT:
+ return "Invalid text encoding";
+ case SERD_ERR_BAD_WRITE:
+ return "Error writing to file";
}
return "Unknown error";