Skip to content

Commit

Permalink
Merge branch 'main' into collect-errors-like-success-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrunwald authored Sep 14, 2024
2 parents 56578a5 + c888e37 commit d48b4a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmd/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ func runRecipes(p *tea.Program, logger *slog.Logger, supplier, localOICDBChecksu
case "client":
clientDriver, err := browser.NewClientAuthBrowserDriver(logger, recipeCredentials, buchhalterConfigDirectory, buchhalterDocumentsDirectory, documentArchive)
if err != nil {

logger.Error("Error initializing a new client auth browser driver", "error", err, "supplier", recipesToExecute[i].recipe.Supplier)
p.Send(utils.ViewStatusUpdateMsg{
Err: fmt.Errorf("error initializing a new client auth browser for supplier `%s`: %w", recipesToExecute[i].recipe.Supplier, err),
Expand Down
2 changes: 1 addition & 1 deletion lib/browser/oauth2.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (b *ClientAuthBrowserDriver) RunRecipe(p *tea.Program, totalStepCount int,
n := 1
for _, step := range recipe.Steps {
p.Send(utils.ViewStatusUpdateMsg{
Message: fmt.Sprintf("Downloading invoices from %s (%d/%d):", recipe.Supplier, n, stepCountInCurrentRecipe),
Message: fmt.Sprintf("Downloading invoices from `%s` (%d/%d):", recipe.Supplier, n, stepCountInCurrentRecipe),
Details: step.Description,
})

Expand Down

0 comments on commit d48b4a9

Please sign in to comment.