From 4ed0613c685bc3fa6aea3a7e6ce412e123f9ea76 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 30 Jun 2004 09:51:42 +0000 Subject: use print + exit instead of die (so that standalone tools don't need to do it by hand) --- perl-install/ugtk2.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm index ebb2a3a63..d04285fd0 100644 --- a/perl-install/ugtk2.pm +++ b/perl-install/ugtk2.pm @@ -42,7 +42,7 @@ use Gtk2; use Gtk2::Gdk::Keysyms; unless ($::no_ugtk_init) { - !check_for_xserver() and die "Cannot be run in console mode.\n"; + !check_for_xserver() and print("Cannot be run in console mode.\n"), c::_exit(0); $::one_message_has_been_translated and warn("N() was called from $::one_message_has_been_translated BEFORE gtk2 initialisation, replace it with a N_() AND a translate() later.\n"), c::_exit(1); Gtk2->init; -- cgit v1.2.1