diff --git a/pdf.c b/pdf.c
index 4e03fdfe36aef82410abd537a0ddb45f880eaee0..b77d8ce142fe12fb264ec2c851ca4759382e8754 100644
--- a/pdf.c
+++ b/pdf.c
@@ -1812,7 +1812,8 @@ LZWDecode(const Dict *parms, HBytes b, HParser *p)
 
 	if(!done)
 	{
-		fprintf(stderr, "LZWDecode: unexpected end of input (depred returns 0, but there are no more bytes\n");
+		// happens if depred() thinks it needs more bytes or when depred is depred_none
+		fprintf(stderr, "LZWDecode: warning, depredict() returns 0, but lzw_decompress finished without error\n");
 	}
 
 	res = h_parse(p, pred.out, pred.nout);