mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
tinyscheme: enhance: rearrange error msg so error kind is stable prefix
Error kind should be first to read, is most important. Makes testing error message easier when prefix is stable.
This commit is contained in:
parent
14c30f6514
commit
61c1acbead
1 changed files with 2 additions and 1 deletions
|
@ -2664,7 +2664,8 @@ static pointer _Error_1(scheme *sc, const char *s, pointer a) {
|
||||||
|
|
||||||
/* we started from 0 */
|
/* we started from 0 */
|
||||||
ln++;
|
ln++;
|
||||||
snprintf(sbuf, STRBUFFSIZE, "(%s : %i) %s", fname, ln, s);
|
/* Err kind s is first, to have a stable prefix for testing. */
|
||||||
|
snprintf(sbuf, STRBUFFSIZE, "%s (%s : %i) ", s, fname, ln);
|
||||||
|
|
||||||
str = (const char*)sbuf;
|
str = (const char*)sbuf;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue