modif: use "Error:" in errExit message (#6716)

Use `Error: ` instead of just `Error `, for consistency with the other
error messages.

Related commits:

* b963fe41a ("Improve errExit error messages", 2023-06-16) /
  PR #5871
* a8abb7800 ("modif: Change errExit msg format to match assert",
  2024-01-14) /
  PR #6158

Misc: This was noticed on #6705.
This commit is contained in:
Kelvin M. Klann 2025-04-23 13:02:26 +00:00 committed by GitHub
parent 60a35c24b9
commit eb0e774098
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -44,7 +44,7 @@
static inline void __attribute__((noreturn))
_errExit(const char *fname, int lineno, const char *func, const char *msg) {
char msgout[500];
snprintf(msgout, 500, "Error %s:%d: %s: %s", fname, lineno, func, msg);
snprintf(msgout, 500, "Error: %s:%d: %s: %s", fname, lineno, func, msg);
perror(msgout);
exit(1);
}

View file

@ -24,7 +24,7 @@ after 100
send -- "firejail --appimage appimage.sh\r"
expect {
timeout {puts "TESTING ERROR 2\n";exit}
-re "Error .*mounting appimage"
-re "Error: .*mounting appimage"
}
after 100