Produce less weird crash on non existing files

Former-commit-id: 74bb27bd53c685be530632994bd2ba24c1f362e1
This commit is contained in:
2023-03-07 17:34:25 +07:00
parent fbfed52508
commit b3922c3896
21 changed files with 147 additions and 32 deletions

View File

@@ -2,6 +2,7 @@ package main
import (
"os"
log "github.com/sirupsen/logrus"
"git.metabarcoding.org/lecasofts/go/obitools/pkg/obiiter"
"git.metabarcoding.org/lecasofts/go/obitools/pkg/obioptions"
@@ -30,7 +31,13 @@ func main() {
optionParser := obioptions.GenerateOptionParser(obipairing.OptionSet)
optionParser(os.Args)
pairs, _ := obipairing.CLIPairedSequence()
pairs, err := obipairing.CLIPairedSequence()
if err != nil {
log.Errorf("Cannot open file (%v)",err)
os.Exit(1)
}
paired := obipairing.IAssemblePESequencesBatch(pairs,
obipairing.CLIGapPenality(),
obipairing.CLIDelta(),