Proper exception handling
This commit is contained in:
parent
0c07e1f749
commit
cc454515dc
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user