fix return value in error caes
don't check patchinfos