Skip to content
This repository was archived by the owner on Apr 14, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ func (c *Client) Store(req Request, dest string) error {
return err
}
defer resp.Body.Close()

if resp.StatusCode != http.StatusOK {
return errors.New("failed to generate the result PDF")
}
return writeNewFile(dest, resp.Body)
}

Expand Down