fix wrong error printing that caused panic

This commit is contained in:
Chris Lu 2014-07-21 13:42:15 -07:00
parent b8bef16c98
commit a3fb644d86

View file

@ -147,7 +147,7 @@ func (fs *FilerServer) PostHandler(w http.ResponseWriter, r *http.Request) {
return return
} }
if ret.Error != "" { if ret.Error != "" {
glog.V(0).Infoln("failing to post to volume server", ra_err.Error()) glog.V(0).Infoln("failing to post to volume server", ret.Error)
writeJsonError(w, r, errors.New(ret.Error)) writeJsonError(w, r, errors.New(ret.Error))
return return
} }