erm what the sigma

This commit is contained in:
NotII
2025-03-24 13:43:42 +00:00
parent 6fafe69f2c
commit edcd0c1e06
11 changed files with 562 additions and 16 deletions

View File

@@ -21,12 +21,6 @@ export async function clientFetch<T = any>(url: string, options: RequestInit = {
if (!res.ok) {
const errorData = await res.json().catch(() => ({}));
const errorMessage = errorData.message || errorData.error || `Request failed: ${res.status} ${res.statusText}`;
console.error('API Error:', {
status: res.status,
url: fullUrl,
response: errorData,
method: options.method || 'GET'
});
throw new Error(errorMessage);
}