$O->foo() or die "could not blabla: ".$O->error();