From 377e714008c08a1b8439ae619624b1218627afd9 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 17 Feb 2015 22:41:25 +0100 Subject: display a nicer message when no removable medium is found (mga#14435) --- perl-install/install/NEWS | 3 +++ perl-install/install/commands.pm | 1 + 2 files changed, 4 insertions(+) (limited to 'perl-install/install') diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index e7f1c631f..5aa705ef7 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -1,3 +1,6 @@ +- bug: + o display a nicer message when no removable medium is found (mga#14435) + Version 16.57 - 11 February 2015 - fix taking screenshots on UEFI 24bit bpp framebuffer (mga#13684) diff --git a/perl-install/install/commands.pm b/perl-install/install/commands.pm index 9df55cbb7..79f49b980 100644 --- a/perl-install/install/commands.pm +++ b/perl-install/install/commands.pm @@ -402,6 +402,7 @@ sub bug { require install::any; my @devs = install::any::removable_media__early_in_install(); + @devs or die "You need to plug a removable medium (USB key, floppy, ...)\n"; $part = $in->ask_from_listf('', "Which device?", \&partition_table::description, \@devs) or return; -- cgit v1.2.1