From febb30141356df83a56026bbb14099e3cb2c82fc Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 5 May 2023 10:34:37 -0400 Subject: Use more human-readable status codes --- src/byte_source.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/byte_source.c') diff --git a/src/byte_source.c b/src/byte_source.c index b56e0102..54b0ad7e 100644 --- a/src/byte_source.c +++ b/src/byte_source.c @@ -19,7 +19,7 @@ serd_byte_source_page(SerdByteSource* const source) if (n_read == 0) { source->file_buf[0] = '\0'; source->eof = true; - return (source->error_func(source->stream) ? SERD_ERR_UNKNOWN + return (source->error_func(source->stream) ? SERD_BAD_STREAM : SERD_FAILURE); } -- cgit v1.2.1