Jake Vanderwerf
2026-03-29 275c0d74cd68677622a5431505c5c870c473063d
assets/js/concise/DataStore.js
@@ -547,6 +547,12 @@
            headers,
            signal: controller.signal
         });
         if (!response.ok) {
            // Access the error details from the response body
            const errorBody = await response.text();
            // Throw a new error with a descriptive message
            throw new Error(`HTTP error! status: ${response.status}, message: ${errorBody}`);
         }
         if (response.status === 304) {
            // 304 means "Not Modified" - use cached data if available
@@ -581,7 +587,6 @@
         if (!response.ok) {
            throw new Error(`HTTP ${response.status}: ${response.statusText}`);
         }
         const data = await response.json();
         await this.processFetchedData(name, data, cacheKey, response);
@@ -597,7 +602,8 @@
         const isAbortError = error?.name === 'AbortError';
         if (!isAbortError) {
            console.error(`Fetch error for store "${name}":`, error);
            console.error(`Fetch error for store "${name}":`, error.message);
            console.dir(error);
            this.notify(name, 'fetch-error', { error });
            throw error;
         }