@lvce-editor/file-system-worker 1.24.0 → 1.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1100,8 +1100,8 @@ const exists$2 = async uri => {
|
|
|
1100
1100
|
};
|
|
1101
1101
|
const readJson$4 = async uri => {
|
|
1102
1102
|
const response = await fetch(uri);
|
|
1103
|
-
if (response.ok) {
|
|
1104
|
-
|
|
1103
|
+
if (!response.ok) {
|
|
1104
|
+
throw new Error(`${response.statusText}`);
|
|
1105
1105
|
}
|
|
1106
1106
|
const json = await response.json();
|
|
1107
1107
|
return json;
|