If I run npm start and the source Web Api is not available, I get the following output:
Fetching variables and parameters on Web API...
error: Error: Could not fetch 'http://0.0.0.0:5000/entities'.
at /Users/mesaides/Documents/legislation-explorer/src/webservices.js:8:26
at processTicksAndRejections (node:internal/process/task_queues:96:5)
…yet the exit code is 0.
This prevents scripts, including automated deployment tools, from detecting the error.
If I run
npm start
and the source Web Api is not available, I get the following output:…yet the exit code is 0.
This prevents scripts, including automated deployment tools, from detecting the error.