summaryrefslogtreecommitdiff
path: root/libspectre
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-01-13 09:56:14 +0000
committerCarlos Garcia Campos <carlosgc@gnome.org>2017-01-15 08:54:05 +0100
commitf88d2c259242936bbc3c74bf43107626c0f5ad61 (patch)
treebc7e7449abcd6780715ea9cc64e66f33353b9ad9 /libspectre
parent1cdaa3fa1da8e0b3b1d2df8cfa5027d2a7b24418 (diff)
state what lib is printing the error
and where it originally came from so its clear where "undefined -21" came from in cases like https://bugzilla.gnome.org/show_bug.cgi?id=678500 https://bugs.freedesktop.org/show_bug.cgi?id=99395
Diffstat (limited to 'libspectre')
-rw-r--r--libspectre/spectre-gs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libspectre/spectre-gs.c b/libspectre/spectre-gs.c
index b701942..414175a 100644
--- a/libspectre/spectre-gs.c
+++ b/libspectre/spectre-gs.c
@@ -55,12 +55,12 @@ critic_error_code (int code)
if (code <= -100) {
switch (code) {
case e_Fatal:
- fprintf (stderr, "fatal internal error %d", code);
+ fprintf (stderr, "(libspectre) ghostscript reports: fatal internal error %d", code);
return TRUE;
break;
case e_ExecStackUnderflow:
- fprintf (stderr, "stack overflow %d", code);
+ fprintf (stderr, "(libspectre) ghostscript reports: stack overflow %d", code);
return TRUE;
break;
@@ -73,7 +73,7 @@ critic_error_code (int code)
int x = (-1) * code;
if (x < (int) (sizeof (errors) / sizeof (const char*))) {
- fprintf (stderr, "%s %d\n", errors[x], code);
+ fprintf (stderr, "(libspectre) ghostscript reports: %s %d\n", errors[x], code);
}
return TRUE;
}