Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset a8c09f91 in mainline


Ignore:
Timestamp:
2018-11-30T20:55:16Z (19 months ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Branches:
master
Children:
506cbf0
Parents:
966f753
Message:

use cli_error instead of printf

Location:
uspace/app/bdsh/cmds/modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/alias/alias.c

    r966f753 ra8c09f91  
    6060                return true;
    6161        }
    62 
    63         printf("%s: No alias with the name '%s' exists\n", cmdname, name);
     62       
     63        cli_error(CL_ENOENT, "%s: No alias with the name '%s' exists\n", cmdname, name);
    6464        return false;
    6565}
  • uspace/app/bdsh/cmds/modules/unalias/unalias.c

    r966f753 ra8c09f91  
    8585
    8686                if (alias_link == NULL) {
    87                         printf("%s: No alias '%s' found\n", cmdname, argv[i]);
     87                        cli_error(CL_ENOENT, "%s: No alias '%s' found\n", cmdname, argv[i]);
    8888                        return CMD_FAILURE;
    8989                }
Note: See TracChangeset for help on using the changeset viewer.