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:
@ -85,8 +85,8 @@ func ReadSequencesFromFile(filename string,
|
||||
switch filetype {
|
||||
case "fastq", "fasta":
|
||||
file.Close()
|
||||
is, _ := ReadFastSeqFromFile(filename, options...)
|
||||
return is, nil
|
||||
is, err := ReadFastSeqFromFile(filename, options...)
|
||||
return is, err
|
||||
case "ecopcr":
|
||||
return ReadEcoPCR(reader, options...), nil
|
||||
case "embl":
|
||||
|
Reference in New Issue
Block a user