summaryrefslogtreecommitdiffstats
path: root/pyanaconda/ui
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2012-10-02 11:57:42 -0400
committerChris Lumens <clumens@redhat.com>2012-10-03 10:57:12 -0400
commitbb076f50c52526ebb5c12275e6a740e9a9098e51 (patch)
tree477a3fc7a1f46cbe1bf753d006d93c36b8118b1a /pyanaconda/ui
parentbdc0dec4f6ba54fb28ff72561834b71659c998e4 (diff)
downloadanaconda-bb076f50c52526ebb5c12275e6a740e9a9098e51.tar.gz
anaconda-bb076f50c52526ebb5c12275e6a740e9a9098e51.tar.xz
anaconda-bb076f50c52526ebb5c12275e6a740e9a9098e51.zip
doAutoPartition should raise errors instead of handle them.
This avoids a confusing situation where you return to the hub and get an error dialog you can only exit anaconda from. Also, put errors from doAutoPartition into self.errors on the storage spoke so they are viewable by clicking on the info bar.
Diffstat (limited to 'pyanaconda/ui')
-rw-r--r--pyanaconda/ui/gui/spokes/storage.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pyanaconda/ui/gui/spokes/storage.py b/pyanaconda/ui/gui/spokes/storage.py
index 7ca11e9d0..535671ef5 100644
--- a/pyanaconda/ui/gui/spokes/storage.py
+++ b/pyanaconda/ui/gui/spokes/storage.py
@@ -334,6 +334,7 @@ class StorageSpoke(NormalSpoke, StorageChecker):
doKickstartStorage(self.storage, self.data, self.instclass)
except StorageError as e:
log.error("storage configuration failed: %s" % e)
+ self.errors = str(e).split("\n")
communication.send_not_ready(self.__class__.__name__)
communication.send_message(self.__class__.__name__,
_("Failed to save storage configuration..."))