Skip to content

Commit

Permalink
pkg/terminal: Improve error when unable to read history file (go-delv…
Browse files Browse the repository at this point in the history
…e#3169)

This patch includes the path to the history file itself so that
users can better fix the issue when an error arises.

Fixes go-delve#3168
  • Loading branch information
derekparker authored Oct 28, 2022
1 parent 95a1513 commit 63ef73a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/terminal/terminal.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ func (t *Term) Run() (int, error) {
fmt.Printf("Unable to open history file: %v. History will not be saved for this session.", err)
}
if _, err := t.line.ReadHistory(t.historyFile); err != nil {
fmt.Printf("Unable to read history file: %v", err)
fmt.Printf("Unable to read history file %s: %v\n", fullHistoryFile, err)
}

fmt.Println("Type 'help' for list of commands.")
Expand Down

0 comments on commit 63ef73a

Please sign in to comment.