Skip to content

Conversation

@mrrobot47
Copy link
Member

Enhanced error messages for backup and restore operations to include:

  • Required space in both human-readable format (MB/GB) and bytes
  • Available free space in both formats
  • Additional space needed to complete the operation

This helps users understand exactly how much more disk space they need to free up when encountering disk space errors during backup/restore operations.

Users will now see:

Error: Not enough disk space to take backup.
Required: 50.84 GB (54,598,761,132 bytes)
Available: 32.54 GB (34,940,645,376 bytes)
Additional space needed: 18.30 GB (19,658,115,756 bytes)
Please free up some space and try again.

This makes it much clearer to users exactly how much space they need to free up!

Copilot AI review requested due to automatic review settings December 4, 2025 04:49
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances error messages for backup and restore operations to provide more detailed disk space information when insufficient space is available. The changes help users understand exactly how much disk space they need to free up by showing required space, available space, and additional space needed in both human-readable format (MB/GB) and bytes.

Key Changes:

  • Added a new format_bytes() helper method to convert bytes to human-readable format (B, KB, MB, GB, TB)
  • Enhanced error messages in pre_backup_check() to display detailed disk space information
  • Enhanced error messages in pre_restore_check() to display detailed disk space information

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

mrrobot47 and others added 4 commits December 4, 2025 10:32
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@mrrobot47 mrrobot47 merged commit c9b00d2 into EasyEngine:develop Dec 4, 2025
1 of 5 checks passed
@mrrobot47 mrrobot47 deleted the feat/improve-disk-space-error branch December 4, 2025 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant