catch exception from template and present it as template error message