From d72da1eb5cecfe30b069634ebfd76f4bf78a2162 Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Tue, 7 Jun 2016 17:03:05 -0400 Subject: [PATCH] Add more descriptive error message if there is an error with gob --- cmd/micro/buffer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/micro/buffer.go b/cmd/micro/buffer.go index c902345d..b454c4fb 100644 --- a/cmd/micro/buffer.go +++ b/cmd/micro/buffer.go @@ -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