move original error out of template into context