Make an assert_isa() failure an 'internal' failure.

This means it should print a backtrace instead of just telling the user
that they dorked something up.
wilder
Michael Pyne 11 years ago
parent ba733332a5
commit 7557e21246
  1. 2
      modules/ksb/Util.pm

@ -124,7 +124,7 @@ sub assert_isa
my ($obj, $class) = @_;
if (!blessed($obj) || !$obj->isa($class)) {
croak_runtime("$obj is not of type $class, but of type " . ref($obj));
croak_internal("$obj is not of type $class, but of type " . ref($obj));
}
return $obj;

Loading…
Cancel
Save