We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1790aa0 commit cc31822Copy full SHA for cc31822
try/try_test.go
@@ -105,7 +105,7 @@ func ExampleIsEOF1() {
105
106
func Example_copyFile() {
107
copyFile := func(src, dst string) (err error) {
108
- defer err2.Handle(&err, "copy %s %s", src, dst)
+ defer err2.Handle(&err, "copy file %s %s", src, dst)
109
110
// These try package helpers are as fast as Check() calls which is as
111
// fast as `if err != nil {}`
@@ -126,5 +126,5 @@ func Example_copyFile() {
126
if err != nil {
127
fmt.Println(err)
128
}
129
- // Output: copy /notfound/path/file.go /notfound/path/file.bak: open /notfound/path/file.go: no such file or directory
+ // Output: copy file /notfound/path/file.go /notfound/path/file.bak: open /notfound/path/file.go: no such file or directory
130
0 commit comments