summaryrefslogtreecommitdiff
path: root/src/GsWidget.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/GsWidget.cxx')
-rw-r--r--src/GsWidget.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/GsWidget.cxx b/src/GsWidget.cxx
index c781ea2..ec0a73d 100644
--- a/src/GsWidget.cxx
+++ b/src/GsWidget.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: GsWidget.cxx,v 1.4 2004/06/25 18:14:05 hofmann Exp $"
+// "$Id: GsWidget.cxx,v 1.5 2004/06/28 19:43:16 hofmann Exp $"
//
// GsWidget routines.
//
@@ -152,7 +152,11 @@ int GsWidget::load(int fd) {
argv[5] = "-dNOPLATFONTS";
argv[6] = "-";
argv[7] = NULL;
- execvp(argv[0], argv);
+ execvp(argv[0], argv);
+ fprintf(stderr, "Could not exec gs (errno %d)\n", errno);
+ fprintf(stderr, "Please install ghostscript and make sure 'gs' "
+ "is in the PATH.\n");
+ exit(1);
} else {
gs_pid = pid;
page = 0;