<!-- Please fill in as much of the template below as you’re able to. If you're unsure whether the issue already exists or how to fill in the template, open an issue anyway. Our team will help you to complete the rest. Your issue might already exist. If so, add a comment to the existing issue instead of creating a new one. You can find existing issues here: https://github.com/alphagov/govuk-prototype-kit/issues --> ## Description of the issue <!-- A clear and concise summary of what the bug is. --> If an error is thrown in an async function, the kit crashes ## Steps to reproduce the issue <!-- How can we reproduce this issue? If you think it will be helpful, please provide a small code snippet and/or screenshots. --> a route like this will crash: ``` router.get("/test", async (req, res) => { functionDoesNotExist() }) ``` ## Actual vs expected behaviour <!-- What is happening vs what would you expect to happen instead? --> The kit should catch the error and show an error page as it does with other errors