More verbose diagnostic, if fails

This commit is contained in:
Andrey A. Chernov 1994-10-31 03:03:18 +00:00
parent 6acf7a7072
commit 466783eaf8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=4022

View File

@ -31,12 +31,12 @@ char *msg; {
return write(2, msg, strlen(msg));
}
#define RETERR(e, msg) { (err == NULL ? (printerr(msg), exit(1), 0) \
#define RETERR(e, msg) { (err == NULL ? (printerr(msg), exit(1)) \
: (*err = e)); return ERR; }
#else
#define RETERR(e, msg) { (err == NULL ? (fprintf(stderr, msg), exit(1), 0) \
#define RETERR(e, msg) { (err == NULL ? (fprintf(stderr, "setupterm(\"%s\",%d,NULL): %s", term, fd, msg), exit(1)) \
: (*err = e)); return ERR; }
#endif