From fcfc58c6d7c607a951006a96a96092562a896c30 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 30 Jun 2004 05:24:04 +0000 Subject: display a nicer error message when disk is not found --- globetrotter/make_live | 1 + 1 file changed, 1 insertion(+) (limited to 'globetrotter') diff --git a/globetrotter/make_live b/globetrotter/make_live index cb81d5615..f0a7ba095 100755 --- a/globetrotter/make_live +++ b/globetrotter/make_live @@ -59,6 +59,7 @@ sub get_hds() { my $all_hds = fsedit::get_hds(); my $other; ($all_hds->{hds}, $other) = partition { $_->{usb_description} eq 'LaCie|LaCie Hard Drive USB' } @{$all_hds->{hds}}; + die "I did not found any LaCie disk\n" if !$all_hds->{hds}[0]; $all_hds, $all_hds->{hds}[0]; # $other } -- cgit v1.2.1