Update runner.ts

This commit is contained in:
Anaïs Saraiva
2026-07-22 10:03:26 +02:00
parent 7770243b14
commit 95cfbff731
+5 -1
View File
@@ -95,7 +95,11 @@ export const runDocker = async (
throw new HttpError(504, "Docker Mailserver command timed out.");
}
throw new HttpError(502, "Docker Mailserver is unreachable.");
if (error instanceof Error && "code" in error && error.code === "ENOENT") {
throw new HttpError(502, `Docker binary '${config.dockerBinary}' was not found. Set DOCKER_BINARY to the absolute docker path on NixOS.`);
}
throw new HttpError(502, error instanceof Error ? error.message : "Docker Mailserver is unreachable.");
} finally {
clearTimeout(timeout);
}