aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/io.c b/io.c
index cf54cdd4..71745d24 100644
--- a/io.c
+++ b/io.c
@@ -841,7 +841,7 @@ redirect_string(const char *str, size_t explen, bool not_string,
what = "|&";
break;
default:
- cant_happen();
+ cant_happen("invalid redirection type %d", (int) redirtype);
}
if (do_lint && not_string)
lintwarn(_("expression in `%s' redirection is a number"),
@@ -1020,7 +1020,7 @@ redirect_string(const char *str, size_t explen, bool not_string,
}
break;
default:
- cant_happen();
+ cant_happen("invalid redirection type %d", (int) redirtype);
}
if (mode != NULL) {
@@ -1617,7 +1617,7 @@ str2mode(const char *mode)
default:
ret = 0; /* lint */
- cant_happen();
+ cant_happen("invalid open mode \"%s\"", mode);
}
if (strchr(mode, 'b') != NULL)
ret |= O_BINARY;