Changing error return value