Skip to content

Commit 029e6cf

Browse files
committed
examples
1 parent 932cd95 commit 029e6cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

type.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func (t *Type) NewWithNoMessage() *Error {
5353

5454
// Wrap creates an error of this type with another as original cause.
5555
// As far as type checks are concerned, this error is the only one visible, with original present only in error message.
56-
// The original error will, however, pass its dynamic properties.
56+
// The original error will not pass its dynamic properties, and those are accessible only via direct walk over Cause() chain.
5757
// Without args, leaves the original message intact, so a message may be generated or provided externally.
5858
// With args, a formatting is performed, and it is therefore expected a format string to be constant.
5959
func (t *Type) Wrap(err error, message string, args ...interface{}) *Error {

0 commit comments

Comments
 (0)