Amended template for an error that was being thrown