summaryrefslogtreecommitdiffstats
path: root/floppy.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2001-07-25 19:38:47 +0000
committerMike Fulbright <msf@redhat.com>2001-07-25 19:38:47 +0000
commit21969f123e8521a50b7fec6b1105bdb55d16959b (patch)
tree95fa46a486d5b22e138e6e7e0d1fceaf3983cc04 /floppy.py
parente65b95fd5b86816a1749ee2d2b2222e8123dfdcf (diff)
downloadanaconda-21969f123e8521a50b7fec6b1105bdb55d16959b.tar.gz
anaconda-21969f123e8521a50b7fec6b1105bdb55d16959b.tar.xz
anaconda-21969f123e8521a50b7fec6b1105bdb55d16959b.zip
fix error messages when writing boot floppy fails
Diffstat (limited to 'floppy.py')
-rw-r--r--floppy.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/floppy.py b/floppy.py
index c92e8ae11..7cbba3de9 100644
--- a/floppy.py
+++ b/floppy.py
@@ -59,6 +59,10 @@ def makeBootdisk (intf, floppyDevice, hdList, instPath):
try:
fd = os.open(file, os.O_RDONLY)
except:
+ intf.messageWindow( _("Error"),
+ _("An error occured while making the boot disk. "
+ "Please make sure that there is a formatted floppy "
+ "in the first floppy drive."))
return DISPATCH_BACK
os.close(fd)
@@ -78,5 +82,9 @@ def makeBootdisk (intf, floppyDevice, hdList, instPath):
w.pop()
if rc:
+ intf.messageWindow( _("Error"),
+ _("An error occured while making the boot disk. "
+ "Please make sure that there is a formatted floppy "
+ "in the first floppy drive."))
return DISPATCH_BACK