Skip to content

Fatal call has possible formatting directive error #18

@xiyunl

Description

@xiyunl

t.Fatal("len is not 2. got: %v", len(ares))

Got errors when building a package with jsonpath lib:
/github.com/oliveagle/jsonpath/jsonpath_test.go:1182: Fatal call has possible formatting directive %v
/github.com/oliveagle/jsonpath/jsonpath_test.go:1185: Fatal call has possible formatting directive %v
/github.com/oliveagle/jsonpath/jsonpath_test.go:1188: Fatal call has possible formatting directive %v
/github.com/oliveagle/jsonpath/jsonpath_test.go:1235: Fatal call has possible formatting directive %v

t.Fatal should be t.Fatalf for above lines.
My go version is 1.10.2 and it works fine with version 1.9.4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions