const handle_errors = function()

in understanding_rl_vision/rl_clarity/svelte/json_load.js [6:12]


const handle_errors = function(response) {
  if (response.ok) {
    return response;
  } else {
    throw new Error(response.status + ':' + response.statusText);
  }
};