Skip to content

Commit

Permalink
update log
Browse files Browse the repository at this point in the history
  • Loading branch information
shenwei356 committed May 31, 2022
1 parent b087e64 commit 9680749
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions taxonkit/cmd/create-taxdump.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Attentions:

reGenomeID, err = regexp.Compile(reGenomeIDStr)
if err != nil {
checkError(fmt.Errorf("fail to compile regular expression: %s", reGenomeIDStr))
checkError(fmt.Errorf("failed to compile regular expression: %s", reGenomeIDStr))
}
}

Expand All @@ -126,7 +126,7 @@ Attentions:

reGTDBsubspe, err = regexp.Compile(reGTDBStr)
if err != nil {
checkError(fmt.Errorf("fail to compile regular expression: %s", reGTDBStr))
checkError(fmt.Errorf("failed to compile regular expression: %s", reGTDBStr))
}
}

Expand Down Expand Up @@ -160,16 +160,14 @@ Attentions:
numFields = numRanks + 1
}
if fAccession > numFields {
checkError(fmt.Errorf("value of -A/--field-accession (%d) is out of range (%d)", fAccession, numFields))
checkError(fmt.Errorf("value of -A/--field-accession (%d) is out of range (%d columns), or inadequate rank names (%d)", fAccession, numFields, numRanks))
}
} else {
numFields = numRanks
}
}
}

fmt.Println(numFields, numRanks)

outDir := getFlagString(cmd, "out-dir")
force := getFlagBool(cmd, "force")
if outDir == "" {
Expand Down Expand Up @@ -320,7 +318,7 @@ Attentions:
numFields = len(items0)

if fAccession > numFields {
checkError(fmt.Errorf("value of -A/--field-accession (%d) is out of range (%d)", fAccession, numFields))
checkError(fmt.Errorf("value of -A/--field-accession (%d) is out of range (%d columns)", fAccession, numFields))
}

if hasAccession {
Expand Down

0 comments on commit 9680749

Please sign in to comment.