diff options
author | Peter Valchev <pvalchev@cvs.openbsd.org> | 2001-05-28 22:41:36 +0000 |
---|---|---|
committer | Peter Valchev <pvalchev@cvs.openbsd.org> | 2001-05-28 22:41:36 +0000 |
commit | 708dc091997145badb91660a6cfad57707ce1a20 (patch) | |
tree | 9962a2e3eea00d6d8428e921ea734ca0566b0399 | |
parent | 0f4ee19637361b907ef00b9b8e60ac559bb95989 (diff) |
Print SYSERR instead of ERR when recdir does not exist.
Makes the message more useful for the user; from NetBSD, millert@ ok
-rw-r--r-- | usr.bin/vi/common/recover.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/vi/common/recover.c b/usr.bin/vi/common/recover.c index cd4012a8b77..a61685dd2b2 100644 --- a/usr.bin/vi/common/recover.c +++ b/usr.bin/vi/common/recover.c @@ -1,4 +1,4 @@ -/* $OpenBSD: recover.c,v 1.5 2001/01/29 01:58:31 niklas Exp $ */ +/* $OpenBSD: recover.c,v 1.6 2001/05/28 22:41:35 pvalchev Exp $ */ /*- * Copyright (c) 1993, 1994 @@ -610,7 +610,7 @@ rcv_read(sp, frp) return (1); rp = O_STR(sp, O_RECDIR); if ((dirp = opendir(rp)) == NULL) { - msgq_str(sp, M_ERR, rp, "%s"); + msgq_str(sp, M_SYSERR, rp, "%s"); return (1); } |