Skip to content
Snippets Groups Projects
Commit 3904ad56 authored by Dmitry Simonenko's avatar Dmitry Simonenko
Browse files

cat-command: added strerror() display

parent 5a6cda72
No related branches found
No related tags found
No related merge requests found
......@@ -468,7 +468,7 @@ main(int argc, char **argv)
if (gopt_arg(opt, 'C', &cat_filename)) {
initialize_minimal();
if (access(cat_filename, R_OK) == -1) {
panic("access(\"%s\")", cat_filename);
panic("access(\"%s\"): %s", cat_filename, strerror(errno));
exit(EX_OSFILE);
}
return mod_cat(cat_filename);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment