Skip to content

Commit

Permalink
clarify error message for missing test case type
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismarget-j committed Jul 19, 2023
1 parent 3ed084c commit 74fea78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apstra/utils/rosetta_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package utils
import (
"fmt"
"github.com/Juniper/apstra-go-sdk/apstra"
"reflect"
"testing"
)

Expand Down Expand Up @@ -63,7 +64,7 @@ func TestRosetta(t *testing.T) {
}

if target == nil {
t.Fatalf("missing case above - target is nil")
t.Fatalf("missing case above - %q target is nil", reflect.TypeOf(tc.stringers[0]))
}

// stringsWithContext is the []string sent to the rosetta function to populate target
Expand Down

0 comments on commit 74fea78

Please sign in to comment.