diff --git a/extra/xapian_indexer.rb b/extra/xapian_indexer.rb index 7c503db1..57566da9 100644 --- a/extra/xapian_indexer.rb +++ b/extra/xapian_indexer.rb @@ -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