MCPcopy Create free account
hub / github.com/microsoft/SandDance / checkResponseSync

Function checkResponseSync

docs/app/js/sanddance-app.js:55142–55148  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

55140 return _checkResponse.apply(this, arguments);
55141}
55142function checkResponseSync(response) {
55143 if (!response.ok) {
55144 var message = "".concat(response.status, " ").concat(response.statusText);
55145 message = message.length > 60 ? "".concat(message.slice(60), "...") : message;
55146 throw new Error(message);
55147 }
55148}
55149function getResponseError(_x3) {
55150 return _getResponseError.apply(this, arguments);
55151}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected