mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +00:00
Produce less weird crash on non existing files
Former-commit-id: 74bb27bd53c685be530632994bd2ba24c1f362e1
This commit is contained in:
@ -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/obiseq"
|
||||
@ -15,7 +16,12 @@ func main() {
|
||||
|
||||
_, args := optionParser(os.Args)
|
||||
|
||||
fs, _ := obiconvert.CLIReadBioSequences(args...)
|
||||
fs, err := obiconvert.CLIReadBioSequences(args...)
|
||||
|
||||
if err != nil {
|
||||
log.Errorf("Cannot open file (%v)",err)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
comp := fs.MakeIWorker(obiseq.ReverseComplementWorker(true))
|
||||
obiconvert.CLIWriteBioSequences(comp, true)
|
||||
|
Reference in New Issue
Block a user