ash: when cd fails, say why

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Johannes Schindelin authored and Denys Vlasenko committed 2017-08-23 14:48:25 +02:00
1 parent 20a63b2c18
commit 687aac056d
1 file changed
+1 -1
+1 -1
View File
@@ -2748,7 +2748,7 @@ cdcmd(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
goto docd;
err:
ash_msg_and_raise_error("can't cd to %s", dest);
ash_msg_and_raise_perror("can't cd to %s", dest);
/* NOTREACHED */
out:
if (flags & CD_PRINT)