Properly handle pet errors in example2