Skip to content

Commit daa31a0

Browse files
committed
include success field on response for sync copy
1 parent f951894 commit daa31a0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

zipserver/server.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,10 @@ func writeJSONMessage(w http.ResponseWriter, msg interface{}) error {
7575

7676
func writeJSONError(w http.ResponseWriter, kind string, err error) error {
7777
return writeJSONMessage(w, struct {
78-
Type string
79-
Error string
80-
}{kind, err.Error()})
78+
Success bool
79+
Type string
80+
Error string
81+
}{false, kind, err.Error()})
8182
}
8283

8384
func versionHandler(w http.ResponseWriter, r *http.Request) error {

0 commit comments

Comments
 (0)