summaryrefslogtreecommitdiffstats
path: root/globetrotter
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-06-30 05:24:04 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-06-30 05:24:04 +0000
commitfcfc58c6d7c607a951006a96a96092562a896c30 (patch)
tree1efd1b27a1e184a5a09eda3c0804a30f77a9fdab /globetrotter
parent39cdf57c2c48ca0eb8e3677799255c4f219ad22e (diff)
downloaddrakx-backup-do-not-use-fcfc58c6d7c607a951006a96a96092562a896c30.tar
drakx-backup-do-not-use-fcfc58c6d7c607a951006a96a96092562a896c30.tar.gz
drakx-backup-do-not-use-fcfc58c6d7c607a951006a96a96092562a896c30.tar.bz2
drakx-backup-do-not-use-fcfc58c6d7c607a951006a96a96092562a896c30.tar.xz
drakx-backup-do-not-use-fcfc58c6d7c607a951006a96a96092562a896c30.zip
display a nicer error message when disk is not found
Diffstat (limited to 'globetrotter')
-rwxr-xr-xglobetrotter/make_live1
1 files changed, 1 insertions, 0 deletions
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
}