Update runner.ts
This commit is contained in:
@@ -95,7 +95,11 @@ export const runDocker = async (
|
|||||||
throw new HttpError(504, "Docker Mailserver command timed out.");
|
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 {
|
} finally {
|
||||||
clearTimeout(timeout);
|
clearTimeout(timeout);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user