Skip to content
Snippets Groups Projects
Commit a19b42bc authored by ale's avatar ale
Browse files

Fix a missed err check

parent 4b2ef00a
No related branches found
No related tags found
No related merge requests found
......@@ -118,6 +118,9 @@ func (r *remoteServer) SendBook(book *Book, storage *FileStorage, files []*File)
w := multipart.NewWriter(&body)
part, err := w.CreateFormFile("meta", "meta.json")
if err != nil {
return err
}
if err := json.NewEncoder(part).Encode(book.Metadata); err != nil {
return err
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment