Mentions légales du service

Skip to content
Snippets Groups Projects
Commit ef4b1cc8 authored by David Parsons's avatar David Parsons
Browse files

use Utils::ExitWithUsrMsg

parent 8c7d239a
No related branches found
No related tags found
No related merge requests found
...@@ -80,15 +80,11 @@ int main(int argc, char* argv[]) { ...@@ -80,15 +80,11 @@ int main(int argc, char* argv[]) {
char raw_chromosome[max_input_chrom_size]; char raw_chromosome[max_input_chrom_size];
FILE* chromosome_file = fopen(chromosome_file_name, "r"); FILE* chromosome_file = fopen(chromosome_file_name, "r");
if (chromosome_file == nullptr) { if (chromosome_file == nullptr) {
printf("ERROR: failed to open source chromosome file %s\n", Utils::ExitWithUsrMsg(std::string("failed to open source chromosome file ") + chromosome_file_name);
chromosome_file_name);
exit(EXIT_FAILURE);
} }
if (fgets(raw_chromosome, max_input_chrom_size, chromosome_file) == nullptr) if (fgets(raw_chromosome, max_input_chrom_size, chromosome_file) == nullptr)
{ {
printf("ERROR: failed to read from chromosome file %s\n", Utils::ExitWithUsrMsg(std::string("failed to read from chromosome file ") + chromosome_file_name);
chromosome_file_name);
exit(EXIT_FAILURE);
} }
lchromosome = strlen(raw_chromosome) - 1; lchromosome = strlen(raw_chromosome) - 1;
chromosome = new char[lchromosome + 1]; chromosome = new char[lchromosome + 1];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment