Repository navigation
Release 1.3.1
Fixes a bug with using Prepend/Append with errors that have causes. The bug was causing the Cause's error message to appear twice in the final error's message, i.e.:
merry.New("red").WithCause(merry.New("green")).Prepend("blue").Error() // blue: red: green: green
As a result, the Message() function will no longer include the cause's message. It will only return the top level error's message. For example, in 1.3.0:
e := merry.New("red").WithCause(merry.New("green"))
Message(e) // red: green
e.Error() // red: green, same as Message(e)
Now in 1.3.1:
e := merry.New("red").WithCause(merry.New("green"))
Message(e) // red
e.Error() // red: green