Proper exception handling
This commit is contained in:
parent
0c07e1f749
commit
cc454515dc
@ -109,9 +109,8 @@ log "Trying to load Redmine environment <<#{$environment}>>..."
|
||||
|
||||
begin
|
||||
require $environment
|
||||
rescue LoadError
|
||||
log "Redmine #{$environment} cannot be loaded!! Be sure the redmine installation directory is correct!", true
|
||||
log 'Edit script and correct path', true
|
||||
rescue LoadError => e
|
||||
log e.message, true
|
||||
exit 1
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user