MCPcopy Create free account
hub / github.com/codemistic/Web-Development / onError

Function onError

Weather Forecast Webapp/js/script.js:37–40  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

35}
36
37function onError(error){
38 infoTxt.innerText = error.message;
39 infoTxt.classList.add("error");
40}
41
42function fetchData(){
43 infoTxt.innerText = "Getting weather details...";

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected