Changed warn to fatal to prevent db corruption

This commit is contained in:
Martin Kamerbeek 2005-08-10 16:43:15 +00:00
parent 0b81da7433
commit e9f74cdc0f
2 changed files with 4 additions and 2 deletions

View file

@ -63,7 +63,9 @@
time ago, but the documentation was never updated until now.
- Created a new pluggable form control backend. See migration.txt for
details.
- Changed warning generated when a languagepack misses the makeUrlCompliant
procedure to a fatal error, since this will lead to a false url in the asset
table.
6.6.5
- fix [ 1243131 ] In 6.6.4 you cannot upload anything (ebruni/mwilson)

View file

@ -184,7 +184,7 @@ sub makeUrlCompliant {
WebGUI::ErrorHandler::warn($cmd." failed to compile because ".$@) if ($@);
$cmd = $cmd."::makeUrlCompliant";
my $output = eval{&$cmd($url)};
WebGUI::ErrorHandler::warn("Couldn't execute ".$cmd." because ".$@) if ($@);
WebGUI::ErrorHandler::fatal("Couldn't execute ".$cmd." because ".$@.". Maybe your languagepack misses the makeUrlCompliant method?") if ($@);
return $output;
}