if ( $value != $expected_value ) { $errorcount++; die new Exception msg => "argh!"; } # continue with the happy path