summaryrefslogtreecommitdiff
path: root/src/run/run.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/run/run.c')
-rw-r--r--src/run/run.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/run/run.c b/src/run/run.c
index ea9454a0e5..8c7bd5c92d 100644
--- a/src/run/run.c
+++ b/src/run/run.c
@@ -575,10 +575,9 @@ int main(int argc, char* argv[]) {
r = find_binary(argv[optind], arg_transport == BUS_TRANSPORT_LOCAL, &command);
if (r < 0) {
- log_error("Failed to find executable %s%s: %s",
- argv[optind],
- arg_transport == BUS_TRANSPORT_LOCAL ? "" : " on local system",
- strerror(-r));
+ log_error_errno(r, "Failed to find executable %s%s: %m",
+ argv[optind],
+ arg_transport == BUS_TRANSPORT_LOCAL ? "" : " on local system");
goto finish;
}
argv[optind] = command;