mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-21 08:20:23 +00:00
Add more descriptive error message if there is an error with gob
This commit is contained in:
parent
8d184c1870
commit
d72da1eb5c
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ func NewBuffer(txt []byte, path string) *Buffer {
|
|||
gob.Register(TextEvent{})
|
||||
err = decoder.Decode(&buffer)
|
||||
if err != nil {
|
||||
TermMessage(err.Error())
|
||||
TermMessage(err.Error(), "\n", "You may want to remove the files in ~/.config/micro/buffers (these files store the information for the 'saveundo' and 'savecursor' options) if this problem persists.")
|
||||
}
|
||||
if settings["savecursor"].(bool) {
|
||||
b.Cursor = buffer.Cursor
|
||||
|
|
|
|||
Loading…
Reference in a new issue