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.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/byte_source.h') 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) { -- cgit v1.2.1