(#22363) Produce meaningful output for all runtime errors

This adds a catch around the evaluate method to ensure that generic
errors fail with meaningful information.