Skip to content

Commit

Permalink
Fix error message in StorageDevice._set_size
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtechtrefny committed Oct 24, 2024
1 parent ead95ba commit 8fa1872
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions blivet/devices/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,11 +635,11 @@ def _set_size(self, newsize):
max_size = self.format.max_size
min_size = self.format.min_size
if max_size and newsize > max_size:
raise errors.DeviceError("device cannot be larger than %s" %
max_size, self.name)
raise errors.DeviceError("device %s cannot be larger than %s" %
(self.name, max_size))
elif min_size and newsize < min_size:
raise errors.DeviceError("device cannot be smaller than %s" %
min_size, self.name)
raise errors.DeviceError("device %s cannot be smaller than %s" %
(self.name, min_size))

self._size = newsize

Expand Down

0 comments on commit 8fa1872

Please sign in to comment.