MCPcopy Index your code
hub / github.com/Acode-Foundation/Acode / onError

Function onError

src/lib/run.js:167–174  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

165 webServer.setOnRequestHandler(handleRequest);
166
167 function onError(err) {
168 if (err === "Server already running") {
169 openBrowser();
170 } else {
171 ++port;
172 start();
173 }
174 }
175 }
176
177 /**

Callers 1

spawnStreamMethod · 0.50

Calls 2

openBrowserFunction · 0.85
startFunction · 0.70

Tested by

no test coverage detected