This commit is an attempt to limit cases where the dashboard will generate a full exception page and also make it easier to track the error.