Changeset 34abe6c5 in mainline


Ignore:
Timestamp:
2024-10-05T09:19:00Z (8 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
dbd91da
Parents:
f9440e0d
Message:

hrctl: inform about stopping a service that does not exit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/hrctl/hrctl.c

    rf9440e0d r34abe6c5  
    280280                        rc = hr_stop(optarg);
    281281                        free(cfg);
    282                         if (rc != EOK)
    283                                 return 1;
     282                        if (rc != EOK) {
     283                                if (rc == ENOENT)
     284                                        printf("hrctl: service named \"%s\" does not exist\n",
     285                                            optarg);
     286                                return 1;
     287                        }
    284288                        return 0;
    285289                case 'l':
Note: See TracChangeset for help on using the changeset viewer.