Proper exception handling

This commit is contained in:
karel.picman@lbcfree.net 2021-05-10 12:35:10 +02:00
parent 0c07e1f749
commit cc454515dc

View File

@ -109,9 +109,8 @@ log "Trying to load Redmine environment <<#{$environment}>>..."
begin begin
require $environment require $environment
rescue LoadError rescue LoadError => e
log "Redmine #{$environment} cannot be loaded!! Be sure the redmine installation directory is correct!", true log e.message, true
log 'Edit script and correct path', true
exit 1 exit 1
end end