import { normalizeCrudServerError } from "@open-mercato/ui/backend/utils/serverErrors";
function resolveTimerActionError(err, fallback) {
  const status = err?.status;
  if (typeof status !== "number") return fallback;
  const message = normalizeCrudServerError(err).message;
  const trimmed = typeof message === "string" ? message.trim() : "";
  return trimmed.length > 0 ? trimmed : fallback;
}
export {
  resolveTimerActionError
};
//# sourceMappingURL=timerErrors.js.map
