Use a more nicely formatted message when we run out of space.

This commit is contained in:
Jordan K. Hubbard 1995-04-18 13:04:34 +00:00
parent fe16ad72f3
commit 4b96fa37b0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7926

View File

@ -1,5 +1,5 @@
#ifndef lint
static const char *rcsid = "$Id: pen.c,v 1.8 1995/02/15 03:48:13 jkh Exp $";
static const char *rcsid = "$Id: pen.c,v 1.9 1995/02/16 12:43:00 jkh Exp $";
#endif
/*
@ -63,7 +63,7 @@ make_playpen(char *pen, size_t sz)
}
if (min_free(Pen) < sz) {
rmdir(Pen);
barf("%s doesn't have enough free space. Please set your PKG_TMPDIR\nenvironment variable to a location with more space and\ntry the command again.", Pen);
barf("Not enough free space to create `%s'.\nPlease set your PKG_TMPDIRenvironment variable to a location with more space and\ntry the command again.", Pen);
}
if (chdir(Pen) == FAIL)
barf("Can't chdir to '%s'.", Pen);