Add convenience function to set error message