X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Frun%2Frun.c;h=8c7bd5c92d890ae5ab25e0cff6041410180a43c9;hb=c33b329709ebe2755181980a050d02ec7c81ed87;hp=ea9454a0e52cb3b537e59436bafe250ebf8e73a8;hpb=5567fafbc9d83a1391f23ecdbe698a3c03929370;p=elogind.git diff --git a/src/run/run.c b/src/run/run.c index ea9454a0e..8c7bd5c92 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;