Use of CPAN Module "Error" is deprecated
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Open AS Communication Gateway |
New
|
High
|
Unassigned |
Bug Description
We should not use "Error" anymore, see: http://
"Using the "Error" module is no longer recommended due to the black-magical nature of its syntactic sugar, which often tends to break. Its maintainers have stopped actively writing code that uses it, and discourage people from doing so. See the "SEE ALSO" section below for better recommendations."
We should use "TryCatch" instead.
This means: ANY module that has a "use Error qw(:try);" at the beginning probably uses some "try-catch" in the code, that means deleting that line and changing it to "use TryCatch;" instead and altering the catch statement to incorporate the new style, so
} catch Underground8:
my $E = shift;
should be changed to
} catch (Underground8:
Changed in open-as-cgw: | |
assignee: | Open AS Team (open-as-team) → Dominic Schallert (dschallert) |