Fix bad interaction with Test::Class:
"Operation "eq": no method found, left argument in overloaded package WebGUI::Error..."
This commit is contained in:
parent
b8905ed780
commit
13c27bc38b
1 changed files with 6 additions and 0 deletions
|
|
@ -290,6 +290,12 @@ use Exception::Class (
|
|||
package WebGUI::Error;
|
||||
use overload '~~' => sub {
|
||||
return $_[0]->isa($_[1]);
|
||||
},
|
||||
'eq' => sub {
|
||||
return $_[0]->error eq $_[1];
|
||||
},
|
||||
'ne' => sub {
|
||||
return $_[0]->error ne $_[1];
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue