Fixed task limit error message so it is an instance of Error and not a string