[interchange] Add configuration time warning on overriding subroutines.
Stefan Hornburg <[email protected]>
| Newsgroups | gmane.comp.web.interchange.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 7d59ad43050a25e72778d9937cbe6c6e1758a980 Author: Stefan Hornburg (Racke) <[email protected]> Date: Wed Jul 21 10:23:32 2010 +0200 Add configuration time warning on overriding subroutines. lib/Vend/Config.pm | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) --- diff --git a/lib/Vend/Config.pm b/lib/Vend/Config.pm index b36420d..78350ea 100644 --- a/lib/Vend/Config.pm +++ b/lib/Vend/Config.pm @@ -5330,6 +5330,10 @@ sub parse_subroutine { $name =~ s/\s+//g; + if (exists $c->{$name}) { + config_warn(errmsg("Overriding subroutine %s", $name)); + } + # Untainting $value =~ /((?s:.)*)/; $value = $1;