mirror of
https://github.com/metabarcoding/obitools4.git
synced 2026-11-10 01:24:41 +00:00
Add more error checks on taxonomy reading
Former-commit-id: 30c848d8e61214afcc7d92f0d3a3f5a1474fc720
This commit is contained in:
1 parent
2caaa62485
commit
b9a7961c91
3 files changed
+25
-3
No files matched your search
@@ -11,6 +11,14 @@ import (
|
||||
)
|
||||
|
||||
func (t1 *TaxNode) LCA(t2 *TaxNode) (*TaxNode, error) {
|
||||
if t1 == nil {
|
||||
log.Fatalf("Try to get LCA of nil taxon")
|
||||
}
|
||||
|
||||
if t2 == nil {
|
||||
log.Fatalf("Try to get LCA of nil taxon")
|
||||
}
|
||||
|
||||
p1, err1 := t1.Path()
|
||||
|
||||
if err1 != nil {
|
||||
|
||||
Reference in new issue
Block a user