Clean up pthread_create() error handling
[gitweb.git] / run-command.c
index 3c3b8814dfc5120681f44f7451a4018c7e84f60d..decf3239bdd59487ddef507529c3948a180e6c48 100644 (file)
@@ -1213,7 +1213,7 @@ int start_async(struct async *async)
        {
                int err = pthread_create(&async->tid, NULL, run_thread, async);
                if (err) {
-                       error_errno("cannot create thread");
+                       error(_("cannot create async thread: %s"), strerror(err));
                        goto error;
                }
        }