Skip to content

Commit

Permalink
Add a warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
nakib103 committed Jan 14, 2025
1 parent dbe74f5 commit ffd4bd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/Bio/EnsEMBL/VEP/BaseRunner.pm
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ sub setup_db_connection {
return if $self->param('offline');
unless ( $self->param('database') || $self->param('cache') ) {
# set offline in case other parts of code tries to connect to db
$self->warning_msg("Setting offline mode. To create database connection use either --database or --cache.");
$self->{_config}->param('offline', 1);
return;
}
Expand Down

0 comments on commit ffd4bd2

Please sign in to comment.