diff options
author | David Robillard <d@drobilla.net> | 2023-05-05 10:34:37 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 16:27:02 -0500 |
commit | febb30141356df83a56026bbb14099e3cb2c82fc (patch) | |
tree | f1d2abcdc3872e375ffe8e4138a8043c20b3b1a8 /src/byte_source.c | |
parent | b739848b6ea4c038610ceb7c0b00984a86d99fa9 (diff) | |
download | serd-febb30141356df83a56026bbb14099e3cb2c82fc.tar.gz serd-febb30141356df83a56026bbb14099e3cb2c82fc.tar.bz2 serd-febb30141356df83a56026bbb14099e3cb2c82fc.zip |
Use more human-readable status codes
Diffstat (limited to 'src/byte_source.c')
-rw-r--r-- | src/byte_source.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |