nhsuk / nhsuk-prototype-kit-version-one

NHSUK Prototype Kit
https://nhsuk-prototype-kit.herokuapp.com/
MIT License
2 stars 3 forks source link

[#36] (fix) Improve error handling for prototypes #38

Closed paul-mitchell-bjss closed 6 years ago

paul-mitchell-bjss commented 6 years ago

Fixes #36

Splits the code-behind loading process into two parts; determining whether the code-behind file exists and then loading it. This allows the former to suppress errors for non-existent code-behind files (which is normal) and the latter to propagate errors.

Also fixes a bug that was suppressing the kit's error page.