Skip to content

Commit a87ed02

Browse files
committed
chore: add additional logging around loading queue from disk
1 parent e3a6e64 commit a87ed02

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

agent-shell-queue-persistence.el

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,8 +526,14 @@ session cannot be resumed and must be re-dispatched."
526526
(insert-file-contents file)
527527
(buffer-string))))
528528
(error
529-
(agent-shell-queue--log-write 'load (error-message-string err))
530-
(message "agent-shell-queue: ignoring unreadable state: %s" err)))))
529+
(let ((msg (error-message-string err)))
530+
(agent-shell-queue--log-write 'load msg)
531+
(message "agent-shell-queue: ignoring unreadable state: %s" msg)
532+
(alert (format "Queue state could not be loaded from %s: %s"
533+
file msg)
534+
:title "agent-shell-queue: load failed"
535+
:severity 'high
536+
:category 'agent-shell-queue))))))
531537
;; Items that were running when the session ended cannot be resumed.
532538
;; Normalize them to active so they will be re-dispatched.
533539
(thread-last

0 commit comments

Comments
 (0)