switch_root: improve behavior on error; improve help text

*: make "can't execute '%s'" message uniform
This commit is contained in:
Denis Vlasenko
2009-04-21 20:40:51 +00:00
parent 950bd72966
commit f9d4fc3cf8
10 changed files with 48 additions and 41 deletions

View File

@@ -164,7 +164,7 @@ int run_parts_main(int argc UNUSED_PARAM, char **argv)
continue;
n = 1;
if (ret < 0)
bb_perror_msg("can't exec %s", name);
bb_perror_msg("can't execute '%s'", name);
else /* ret > 0 */
bb_error_msg("%s exited with code %d", name, ret);
}