make error a little bit more clearer

fix https://github.com/chrislusf/seaweedfs/issues/1259
This commit is contained in:
Chris Lu 2020-04-03 00:24:09 -07:00
parent 5f881d2fd5
commit d2f8e50459

View File

@ -52,7 +52,7 @@ func RunMount(option *MountOptions, umask os.FileMode) bool {
err = pb.WithGrpcFilerClient(filerGrpcAddress, grpcDialOption, func(client filer_pb.SeaweedFilerClient) error {
resp, err := client.GetFilerConfiguration(context.Background(), &filer_pb.GetFilerConfigurationRequest{})
if err != nil {
return fmt.Errorf("get filer %s configuration: %v", filerGrpcAddress, err)
return fmt.Errorf("get filer grpc address %s configuration: %v", filerGrpcAddress, err)
}
cipher = resp.Cipher
return nil