When something breaks inside

Your task In the code box, answer GET /stock/<id> with getStock(id)'s result. When it fails, answer 500 with { "error": "Something went wrong. Try again later." }, log the error with console.error, and keep the server running. Then press Run my code.

Getting the editor ready