Skip to content

Commit f1b6ba6

Browse files
committed
chore: throw error on file not found
1 parent 2fd2110 commit f1b6ba6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/screentracker/pty_conversation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ func (c *PTYConversation) loadStateLocked() error {
650650
// Check if file exists
651651
if _, err := os.Stat(stateFile); os.IsNotExist(err) {
652652
c.cfg.Logger.Info("No previous state to load (file does not exist)", "path", stateFile)
653-
return nil
653+
return xerrors.Errorf("No previous state to load (file does not exist)")
654654
}
655655

656656
// Open state file

0 commit comments

Comments
 (0)