diff options
| author | yanyiwu <i@yanyiwu.com> | 2015-04-19 19:00:20 +0800 |
|---|---|---|
| committer | yanyiwu <i@yanyiwu.com> | 2015-04-19 19:07:06 +0800 |
| commit | 6f968626627916a41b299496fd758dd3c9e6c559 (patch) | |
| tree | 41bffcbf3149b16808fedb9d280fd1792ef4a39d /go/security/guard.go | |
| parent | 6e876e058256938427b44847aa90f98c324bf3e4 (diff) | |
| download | seaweedfs-6f968626627916a41b299496fd758dd3c9e6c559.tar.xz seaweedfs-6f968626627916a41b299496fd758dd3c9e6c559.zip | |
FIXED: When RaftServer cannot find a leader, Return a more readable error.
Before:
curl -F "file=1234" "http://127.0.0.1:9333/submit"
{"error":"Post http:///dir/assign: http: no Host in request URL"}
After:
curl -F "file=1234" "http://127.0.0.1:9333/submit"
{"error":"Raft Server not initialized!"}
Diffstat (limited to 'go/security/guard.go')
0 files changed, 0 insertions, 0 deletions
