aboutsummaryrefslogtreecommitdiffstats
path: root/src/byte_source.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-05-05 10:34:37 -0400
committerDavid Robillard <d@drobilla.net>2023-12-02 16:27:02 -0500
commitfebb30141356df83a56026bbb14099e3cb2c82fc (patch)
treef1d2abcdc3872e375ffe8e4138a8043c20b3b1a8 /src/byte_source.h
parentb739848b6ea4c038610ceb7c0b00984a86d99fa9 (diff)
downloadserd-febb30141356df83a56026bbb14099e3cb2c82fc.tar.gz
serd-febb30141356df83a56026bbb14099e3cb2c82fc.tar.bz2
serd-febb30141356df83a56026bbb14099e3cb2c82fc.zip
Use more human-readable status codes
Diffstat (limited to 'src/byte_source.h')
-rw-r--r--src/byte_source.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/byte_source.h b/src/byte_source.h
index b6cba5d4..46e1f874 100644
--- a/src/byte_source.h
+++ b/src/byte_source.h
@@ -93,7 +93,7 @@ serd_byte_source_advance(SerdByteSource* source)
if (!source->read_func(&source->read_byte, 1, 1, source->stream)) {
source->eof = true;
st =
- source->error_func(source->stream) ? SERD_ERR_UNKNOWN : SERD_FAILURE;
+ source->error_func(source->stream) ? SERD_BAD_STREAM : SERD_FAILURE;
}
}
} else if (!source->eof) {