mdedit-cli 0.4.17 → 0.4.19

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.
package/dist/index.js CHANGED
@@ -784,10 +784,7 @@ var init_dist = __esm({
784
784
  const fetchV2 = fetchers?.customFetchV2 ?? customFetchV2;
785
785
  const response = await fetchV2(`/workspaces/${workspaceId}`);
786
786
  if (!response.ok) {
787
- throw new errors_default(
788
- `Error fetching workspace. ${await response.text()}`,
789
- response.status
790
- );
787
+ throw await workspaceFetchError("fetching workspace", response);
791
788
  }
792
789
  return response.json();
793
790
  };