summaryrefslogtreecommitdiff
path: root/server_config.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-12-23 14:43:47 +0300
committerWolfy-J <[email protected]>2019-12-23 14:43:47 +0300
commitc7b0a4a81827284f7565c56aa476eea34fb6382f (patch)
treeee30e93169c37fb058fbe55af6b3f954eabd9646 /server_config.go
parent7f694966730f6dac09d0d0ea3bf51276b8e4dfe4 (diff)
- test fixes
Diffstat (limited to 'server_config.go')
-rw-r--r--server_config.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/server_config.go b/server_config.go
index 5fb4a014..641c1866 100644
--- a/server_config.go
+++ b/server_config.go
@@ -128,7 +128,10 @@ func (cfg *ServerConfig) makeFactory() (Factory, error) {
}
if dsn[0] == "unix" {
- syscall.Unlink(dsn[1])
+ err := syscall.Unlink(dsn[1])
+ if err != nil {
+ return nil, err
+ }
}
ln, err := net.Listen(dsn[0], dsn[1])