Commit a19b42bc authored by ale's avatar ale

Fix a missed err check

parent 4b2ef00a
......@@ -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
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment