Skip to content

Commit

Permalink
improve on message errors
Browse files Browse the repository at this point in the history
  • Loading branch information
averissimo committed Oct 20, 2016
1 parent d3b6c20 commit ca1e215
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/config_blast.rb
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ def validate_config
'Should be the query parent directory')
if !@store.query.key?('folders') || !@store.query.folders.is_a?(Array)
log_required_sub.call('folders', 'query.list', '\n - (folder name)')
else @store.query.folders.size == 0
log_required_sub.call('folders', 'query.list', '\n - (at least one folder name)')
end
end
#
Expand Down Expand Up @@ -360,7 +362,7 @@ def process_config
#
fail 'Database parent must be defined in user.yml.' \
if @store.db.parent.nil?
fail 'Folders must be defined in user.yml.' \
fail 'Folders list containing queries must be defined in user.yml.' \
if @store.query.folders.nil?
# set existing dbs
logger.info('Databases: ')
Expand Down

0 comments on commit ca1e215

Please sign in to comment.