diff options
author | Erik Troan <ewt@redhat.com> | 2000-05-16 15:06:28 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2000-05-16 15:06:28 +0000 |
commit | fdf77eb2b998edad8620fb639e426329172ed6a3 (patch) | |
tree | c6c5442758380536481275d0efc0a256201ef356 /todo.py | |
parent | 5598194d7f9a277a704daf5e0f669b7c2a8936a9 (diff) | |
download | anaconda-fdf77eb2b998edad8620fb639e426329172ed6a3.tar.gz anaconda-fdf77eb2b998edad8620fb639e426329172ed6a3.tar.xz anaconda-fdf77eb2b998edad8620fb639e426329172ed6a3.zip |
give a better error message when we fail to copy the timezone properly
Diffstat (limited to 'todo.py')
-rw-r--r-- | todo.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -339,12 +339,13 @@ class ToDo: def writeTimezone(self): if (self.timezone): (timezone, asUtc, asArc) = self.timezone + fromFile = self.instPath + "/usr/share/zoneinfo/" + timezone + try: - iutil.copyFile(self.instPath + "/usr/share/zoneinfo/" + timezone, - self.instPath + "/etc/localtime") + iutil.copyFile(fromFile, self.instPath + "/etc/localtime") except OSError, (errno, msg): self.intf.messageWindow(_("Error"), - _("Error copying file: %s") % msg) + _("Error copying timezone (from %s): %s") % (fromFile, msg)) else: asUtc = 0 asArc = 0 |