mirror of
https://github.com/documize/community.git
synced 2025-07-19 13:19:43 +02:00
15 lines
289 B
Go
15 lines
289 B
Go
//go:build go1.13
|
|
// +build go1.13
|
|
|
|
package mssql
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/microsoft/go-mssqldb/msdsn"
|
|
)
|
|
|
|
func wrapConnErr(p *msdsn.Config, err error) error {
|
|
f := "unable to open tcp connection with host '%v:%v': %w"
|
|
return fmt.Errorf(f, p.Host, resolveServerPort(p.Port), err)
|
|
}
|