We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60861c2 commit 795bacdCopy full SHA for 795bacd
1 file changed
src/main.py
@@ -658,7 +658,14 @@ def action_resize(self, resizable):
658
break
659
660
print()
661
- self.dutil.resizeContainer(target.name, val)
+ try:
662
+ self.dutil.resizeContainer(target.name, val)
663
+ except subprocess.CalledProcessError as e:
664
+ print()
665
+ p_error(f"Resize failed. This is usually caused by pre-existing APFS filesystem corruption.")
666
+ p_warning("Carefully read the diskutil logs above for more information about the cause.")
667
+ p_warning("This can usually be solved by doing a First Aid repair from Disk Utility in Recovery Mode.")
668
+ return False
669
670
671
p_success(f"Resize complete. Press enter to continue.")
0 commit comments