This commit is contained in:
2013-08-27 09:41:55 -04:00
parent 219eecbfda
commit 7009b0eda8
3 changed files with 8 additions and 8 deletions

View File

@ -1,9 +1,9 @@
package main
import (
"log"
"net"
"net/rpc"
"log"
"syscall"
)
@ -13,9 +13,9 @@ func RPCCall(method string, args interface{}, reply interface{}) error {
if err != nil {
if err2, ok := err.(*net.OpError); ok {
if err2.Err == syscall.ENOENT {
log.Fatal("The socket ("+socket+") was not found")
log.Fatal("The socket (" + socket + ") was not found")
} else if err2.Err == syscall.ECONNREFUSED {
log.Fatal("A connection was refused to "+socket+". Please check the permissions and ensure the server is running.")
log.Fatal("A connection was refused to " + socket + ". Please check the permissions and ensure the server is running.")
}
}
return err