summaryrefslogtreecommitdiff
path: root/morphlib/util.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2013-06-07 13:50:05 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2013-06-07 17:02:04 +0000
commitf461727eeb43bdf1e9caf385997fd9fc860d8e1a (patch)
treeb93b797abf5fd0a1db2759d4eaaa44d46e8987d3 /morphlib/util.py
parentfacdfae5355ac0e2f36860482bd74c55d179ca08 (diff)
downloadmorph-f461727eeb43bdf1e9caf385997fd9fc860d8e1a.tar.gz
util: suggest how to deal with insufficient space
Diffstat (limited to 'morphlib/util.py')
-rw-r--r--morphlib/util.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/morphlib/util.py b/morphlib/util.py
index 6dcb22b5..b56443e9 100644
--- a/morphlib/util.py
+++ b/morphlib/util.py
@@ -269,4 +269,10 @@ def check_disk_available(tmp_path, tmp_min_size,
'has %(free)d' % locals())
if not errors:
return
- raise morphlib.Error('Insufficient space on disk:\n' + '\n'.join(errors))
+ raise morphlib.Error('Insufficient space on disk:\n' +
+ '\n'.join(errors) + '\n'
+ 'Please run `morph gc`. If the problem persists '
+ 'increase the disk size, manually clean up some '
+ 'space or reduce the disk space required by the '
+ 'tempdir-min-space and cachedir-min-space '
+ 'configuration options.')