summaryrefslogtreecommitdiff
path: root/cmd_comment.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd_comment.go')
-rw-r--r--cmd_comment.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd_comment.go b/cmd_comment.go
index 9d5aa88..b554487 100644
--- a/cmd_comment.go
+++ b/cmd_comment.go
@@ -1,9 +1,10 @@
package libfastimport
import (
- "fmt"
"strconv"
"strings"
+
+ "github.com/pkg/errors"
)
// comment /////////////////////////////////////////////////////////////////////
@@ -44,7 +45,7 @@ func (CmdGetMark) fiCmdRead(fir fiReader) (cmd Cmd, err error) {
c := CmdGetMark{}
c.Mark, err = strconv.Atoi(trimLinePrefix(line, "get-mark :"))
if err != nil {
- return nil, fmt.Errorf("get-mark: %v", err)
+ return nil, errors.Wrap(err, "get-mark")
}
return c, nil
}