Subject: compilation-next-error says: Moved past last error, even when none
From: Dan Jacobson <[email-masked]>
To: [email-masked]
Date: Sun, 03 Sep 2023 03:19:30 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

compilation-next-error says: Moved past last error
even if there was no errors that it found.
So it should differentiate such cases.
M-x compile

make
make: *** No targets specified and no makefile found.  Stop.

OK, there was no error, so instead of "Moved past last error" it should
say "Didn't find any errors" when asked.
emacs-version "29.1"