sailfork / t3code-github / apps/ web/ src/ components/ preview/ errorCodeMessages.ts
import { PREVIEW_ERROR_CODE_MESSAGES } from "./previewConstants";
export function describePreviewError(description: string): string {
const friendly = PREVIEW_ERROR_CODE_MESSAGES[description];
if (friendly) return friendly;
if (description.length > 0) return description;
return "Network error";
}