This commit is contained in:
yedf2 2021-08-04 16:06:06 +08:00
parent 0a8271e326
commit 55872133b8
2 changed files with 2 additions and 2 deletions

View File

@ -19,6 +19,6 @@ func TestQuery(t *testing.T) {
} }
func TestXa(t *testing.T) { func TestXa(t *testing.T) {
_, err := NewXaClient("http://localhost:8080", MS{}, "badurl", nil) _, err := NewXaClient("http://localhost:8080", MS{}, ":::::", nil)
assert.Error(t, err) assert.Error(t, err)
} }

View File

@ -144,7 +144,7 @@ func LogIfFatalf(condition bool, fmt string, args ...interface{}) {
// FatalIfError 采用红色打印错误类信息, 并退出 // FatalIfError 采用红色打印错误类信息, 并退出
func FatalIfError(err error) { func FatalIfError(err error) {
LogIfFatalf(err == nil, "Fatal error: %v", err) LogIfFatalf(err != nil, "Fatal error: %v", err)
} }
// RestyClient the resty object // RestyClient the resty object