Skip to content

Commit 86f1a3a

Browse files
committed
fix: improve error message for pausing background jobs
1 parent 4e91d2c commit 86f1a3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/cmd/upload/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ func (upCmd *UpCmd) run(ctx context.Context, adapter adapters.Reader, app *app.A
180180
if app.Client().PauseImmichBackgroundJobs {
181181
err := upCmd.pauseJobs(ctx, app)
182182
if err != nil {
183-
return fmt.Errorf("Can't pause immich background jobs: %wpass an administrator key with the flag --admin-api-key or disable the pause with thee flag --pause-immich-jobs=FALSE", err)
183+
return fmt.Errorf("can't pause immich background jobs: pass an administrator key with the flag --admin-api-key or disable the jobs pausing with the flag --pause-immich-jobs=FALSE\n%w", err)
184184
}
185185
}
186186
defer func() { _ = upCmd.finishing(ctx, app) }()

0 commit comments

Comments
 (0)