function handleErrors()

in lib/filters/snippets.js [7:12]


function handleErrors(response) {
  if (!response.ok) {
      throw Error(response.statusText);
  }
  return response;
}