Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

352 B
Raw Blame
import { TRPCError } from "@trpc/server";

export const throwIfDockerOperationsFailed = (results: readonly PromiseSettledResult<unknown>[]) => {
  if (results.some((result) => result.status === "rejected")) {
    throw new TRPCError({
      code: "INTERNAL_SERVER_ERROR",
      message: "One or more Docker container operations failed",
    });
  }
};