(err error, callerPC uintptr)
| 63 | var _arena = newArena[errTrace](1024) |
| 64 | |
| 65 | func wrap(err error, callerPC uintptr) error { |
| 66 | et := _arena.Take() |
| 67 | et.err = err |
| 68 | et.pc = callerPC |
| 69 | return et |
| 70 | } |
| 71 | |
| 72 | // Format writes the return trace for given error to the writer. |
| 73 | // The output takes a format similar to the following: |