aboutsummaryrefslogtreecommitdiff
path: root/template/go/pattern.stpl
diff options
context:
space:
mode:
Diffstat (limited to 'template/go/pattern.stpl')
-rw-r--r--template/go/pattern.stpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/template/go/pattern.stpl b/template/go/pattern.stpl
index 45c3b02..8bfb8b8 100644
--- a/template/go/pattern.stpl
+++ b/template/go/pattern.stpl
@@ -3,13 +3,13 @@
\(\S\+\)\.iferr$
if {{$1}} != nil {
- return err
+ return {{$1}}
}
{{_cursor_}}
\(\S\+\)\.fatal$
if {{$1}} != nil {
- log.Fatal(err)
+ log.Fatal({{$1}})
}
{{_cursor_}}