From f461727eeb43bdf1e9caf385997fd9fc860d8e1a Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Fri, 7 Jun 2013 13:50:05 +0000 Subject: util: suggest how to deal with insufficient space --- morphlib/util.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'morphlib') 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.') -- cgit v1.2.1