diff --git a/pkg/npm/http-api/src/Urbit.ts b/pkg/npm/http-api/src/Urbit.ts index 9779a397f..278bc1802 100644 --- a/pkg/npm/http-api/src/Urbit.ts +++ b/pkg/npm/http-api/src/Urbit.ts @@ -545,7 +545,12 @@ export class Urbit { const response = await fetch( `${this.url}/~/scry/${app}${path}.json`, this.fetchOptions - ); + ) + + if (!response.ok) { + return Promise.reject(response); + } + return await response.json(); }