From 51f1de0235cfb091fcc481fa97d48326295d2c58 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 8 Jul 2021 22:50:02 -0400 Subject: Handle read errors more precisely --- 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 8393a3fb..097e73ef 100644 --- a/src/string.c +++ b/src/string.c @@ -56,6 +56,8 @@ serd_strerror(const SerdStatus status) return "Invalid text encoding"; case SERD_ERR_BAD_WRITE: return "Error writing to file"; + case SERD_ERR_NO_DATA: + return "Unexpected end of input"; } return "Unknown error"; -- cgit v1.2.1