Changes in uspace/app/bdsh/exec.c [19f857a:2721a75] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/exec.c

    r19f857a r2721a75  
    4040#include <str.h>
    4141#include <fcntl.h>
     42#include <str_error.h>
    4243
    4344#include "config.h"
     
    124125
    125126        if (tid == 0) {
    126                 cli_error(CL_EEXEC, "Cannot spawn `%s'.", cmd);
     127                cli_error(CL_EEXEC, "%s: Cannot spawn `%s'", progname, cmd);
    127128                return 1;
    128129        }
     
    130131        task_wait(tid, &texit, &retval);
    131132        if (texit != TASK_EXIT_NORMAL) {
    132                 printf("Command failed (unexpectedly terminated).\n");
     133                printf("%s: Command failed (unexpectedly terminated)\n", progname);
    133134        } else if (retval != 0) {
    134                 printf("Command failed (return value %d).\n", retval);
     135                printf("%s: Command failed (%s)\n",
     136                    progname, str_error(retval));
    135137        }
    136138
Note: See TracChangeset for help on using the changeset viewer.