Skip to content

Commit

Permalink
Fixed error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
untergasser committed Sep 28, 2021
1 parent ed472cb commit dd9c69c
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/primer3_boulder_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,11 +406,20 @@ main(int argc, char *argv[])

if (read_boulder_record_res.file_flag && sarg->sequence_name == NULL) {
/* We will not have a base name for the files */
if (format_output) {
format_error(stdout, NULL,
"Need PRIMER_SEQUENCE_ID if PRIMER_FILE_FLAG is not 0");
if (default_version == 2) {
if (format_output) {
format_error(stdout, NULL,
"Need SEQUENCE_ID if P3_FILE_FLAG is not 0");
} else {
print_boulder_error("Need SEQUENCE_ID if P3_FILE_FLAG is not 0");
}
} else {
print_boulder_error("Need PRIMER_SEQUENCE_ID if PRIMER_FILE_FLAG is not 0");
if (format_output) {
format_error(stdout, NULL,
"Need PRIMER_SEQUENCE_ID if PRIMER_FILE_FLAG is not 0");
} else {
print_boulder_error("Need PRIMER_SEQUENCE_ID if PRIMER_FILE_FLAG is not 0");
}
}
goto loop_wrap_up;
}
Expand Down

0 comments on commit dd9c69c

Please sign in to comment.