Merge pull request #515 from fate-grand-order/branch

Use errors.New() directly to output the error message
This commit is contained in:
Michael Crosby 2017-02-10 13:55:10 -08:00 committed by GitHub
commit 89f62d4fae
8 changed files with 13 additions and 12 deletions

View file

@ -123,7 +123,7 @@ func main() {
debugPath := context.GlobalString("debug-socket")
if debugPath == "" {
return fmt.Errorf("--debug-socket path cannot be empty")
return errors.New("--debug-socket path cannot be empty")
}
d, err := utils.CreateUnixSocket(debugPath)
if err != nil {
@ -138,7 +138,7 @@ func main() {
path := context.GlobalString("socket")
if path == "" {
return fmt.Errorf("--socket path cannot be empty")
return errors.New("--socket path cannot be empty")
}
l, err := utils.CreateUnixSocket(path)
if err != nil {