fix failure case to correctly show error