Skip to content

Commit

Permalink
Add better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-steinegger committed Jan 10, 2025
1 parent c5ca4c3 commit 0266ea5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/prefiltering/ungappedprefilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ int prefilterInternal(int argc, const char **argv, const Command &command, int m
const bool isGpuDb = DBReader<unsigned int>::getExtendedDbtype(tdbr->getDbtype()) & Parameters::DBTYPE_EXTENDED_GPU;
if (isGpuDb == false) {
Debug(Debug::ERROR) << "Database " << FileUtil::baseName(par.db2) << " is not a valid GPU database\n"
<< "Please call: makepaddedseqdb " << FileUtil::baseName(par.db2) << " " << FileUtil::baseName(par.db2) "_pad\n";
<< "Please call: makepaddedseqdb " << FileUtil::baseName(par.db2) << " " << FileUtil::baseName(par.db2) << "_pad\n";
EXIT(EXIT_FAILURE);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/util/gpuserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ int gpuserver(int argc, const char **argv, const Command& command) {
const bool isGpuDb = DBReader<unsigned int>::getExtendedDbtype(dbr->getDbtype()) & Parameters::DBTYPE_EXTENDED_GPU;
if (isGpuDb == false) {
Debug(Debug::ERROR) << "Database " << FileUtil::baseName(par.db1) << " is not a valid GPU database\n"
<< "Please call: makepaddedseqdb " << FileUtil::baseName(par.db2) << " " << FileUtil::baseName(par.db2) "_pad\n";
<< "Please call: makepaddedseqdb " << FileUtil::baseName(par.db2) << " " << FileUtil::baseName(par.db2) << "_pad\n";
EXIT(EXIT_FAILURE);
}

Expand Down

0 comments on commit 0266ea5

Please sign in to comment.