diff --git a/tds.go b/tds.go index e1b63300..27c8c76e 100644 --- a/tds.go +++ b/tds.go @@ -1205,10 +1205,10 @@ initiate_connection: loginAck = true case doneStruct: if token.isError() { - return nil, fmt.Errorf("login error: %s", token.getError()) + return nil, fmt.Errorf("login error: %w", token.getError()) } case error: - return nil, fmt.Errorf("login error: %s", token.Error()) + return nil, fmt.Errorf("login error: %w", token) } } }