Skip to content

Commit

Permalink
Minor bug fixes to improve working with repository
Browse files Browse the repository at this point in the history
  • Loading branch information
wejdross committed May 4, 2023
1 parent df1f4de commit defb1ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/antora-preview.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

antora_preview_version ?= 2.3.14
antora_preview_cmd ?= $(DOCKER_CMD) run --rm --publish 2020:2020 --volume "${PWD}":/preview/antora docker.io/vshn/antora-preview:$(antora_preview_version) --style=vshn
antora_preview_cmd ?= $(DOCKER_CMD) run --rm --publish 2020:2020 --volume "${PWD}":/preview/antora ghcr.io/vshn/antora-preview:latest --style=vshn

.PHONY: docs-preview
docs-preview: ## Preview the documentation
Expand Down
2 changes: 1 addition & 1 deletion invoice_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ func (cmd *invoiceCommand) execute(context *cli.Context) error {
invoice.WithInvoiceLineDefaults(invLineDefault),
invoice.WithItemDescriptionRenderer(descTemplates),
)
log.Info("Created invoice", "id", id)
if err != nil {
return fmt.Errorf("error creating invoice %+v: %w", inv, err)
}
log.Info("Created invoice", "id", id)
}

return nil
Expand Down
1 change: 1 addition & 0 deletions odoo/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ func (c Client) requestSession(ctx context.Context, login string, password strin
return nil, newCreatingRequestError(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Accept", "application/json")

// Send request
resp, err := c.http.Do(req)
Expand Down

0 comments on commit defb1ae

Please sign in to comment.