From a6cd7dd91d93015ec118286b868c3fd43133f3ac Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 9 Apr 2023 11:54:11 -0400 Subject: Gracefully handle errors when writing text --- src/string.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/string.c') diff --git a/src/string.c b/src/string.c index 07513739..ecba3463 100644 --- a/src/string.c +++ b/src/string.c @@ -39,6 +39,8 @@ serd_strerror(const SerdStatus status) return (const uint8_t*)"Internal error"; case SERD_ERR_BAD_WRITE: return (const uint8_t*)"Error writing to file/stream"; + case SERD_ERR_BAD_TEXT: + return (const uint8_t*)"Invalid text encoding"; } return (const uint8_t*)"Unknown error"; // never reached } -- cgit v1.2.1