From 765d13bb19c9770550daba6d3169dec2fc428791 Mon Sep 17 00:00:00 2001 From: Jordan Orelli Date: Tue, 28 Jul 2020 00:12:01 +0000 Subject: [PATCH] hm load failures aren't handled --- tree.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tree.go b/tree.go index 2b5051a..82e8b5b 100644 --- a/tree.go +++ b/tree.go @@ -47,7 +47,10 @@ func exec(t *testing.T, tree *Tree) ([]Test, *env) { history, e := exec(t, tree.parent) test := clone(tree.test) - e.load(test) + if err := e.load(test); err != nil { + // TODO: figure out how to handle load failures like this. + panic("load failure: " + err.Error()) + } test.Run(t) return append([]Test{test}, history...), e.save(test) }