@snapshot-labs/snapshot.js 0.6.0 → 0.6.1

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.
@@ -4550,10 +4550,10 @@ function subgraphRequest(url, query, options) {
4550
4550
  responseData = JSON.parse(responseData);
4551
4551
  }
4552
4552
  catch (e) {
4553
- throw new Error("Errors found in subgraphRequest: URL: " + url + ", Status: " + res.status + ", Response: " + responseData);
4553
+ throw new Error("Errors found in subgraphRequest: URL: " + url + ", Status: " + res.status + ", Response: " + responseData.substring(0, 400));
4554
4554
  }
4555
4555
  if (responseData.errors) {
4556
- throw new Error("Errors found in subgraphRequest: URL: " + url + ", Status: " + res.status + ", Response: " + JSON.stringify(responseData.errors));
4556
+ throw new Error("Errors found in subgraphRequest: URL: " + url + ", Status: " + res.status + ", Response: " + JSON.stringify(responseData.errors).substring(0, 400));
4557
4557
  }
4558
4558
  data = responseData.data;
4559
4559
  return [2 /*return*/, data || {}];
@@ -4541,10 +4541,10 @@ function subgraphRequest(url, query, options) {
4541
4541
  responseData = JSON.parse(responseData);
4542
4542
  }
4543
4543
  catch (e) {
4544
- throw new Error("Errors found in subgraphRequest: URL: " + url + ", Status: " + res.status + ", Response: " + responseData);
4544
+ throw new Error("Errors found in subgraphRequest: URL: " + url + ", Status: " + res.status + ", Response: " + responseData.substring(0, 400));
4545
4545
  }
4546
4546
  if (responseData.errors) {
4547
- throw new Error("Errors found in subgraphRequest: URL: " + url + ", Status: " + res.status + ", Response: " + JSON.stringify(responseData.errors));
4547
+ throw new Error("Errors found in subgraphRequest: URL: " + url + ", Status: " + res.status + ", Response: " + JSON.stringify(responseData.errors).substring(0, 400));
4548
4548
  }
4549
4549
  data = responseData.data;
4550
4550
  return [2 /*return*/, data || {}];