From bc4780091b0179433e8b92ab6d2624994fed947a Mon Sep 17 00:00:00 2001 From: Francois Date: Sat, 30 Aug 2014 21:27:21 +0200 Subject: [PATCH] Proposal for adding a ":" for stack trace printout Mainly useful for Sublime users with goto anything. --- router.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/router.go b/router.go index 6f8bd769..21aa4724 100644 --- a/router.go +++ b/router.go @@ -818,8 +818,8 @@ func (p *ControllerRegistor) recoverPanic(rw http.ResponseWriter, r *http.Reques if !ok { break } - Critical(file, line) - stack = stack + fmt.Sprintln(file, line) + Critical(fmt.Sprintf("%s:%d", file, line)) + stack = stack + fmt.Sprintln(fmt.Sprintf("%s:%d", file, line)) } middleware.ShowErr(err, rw, r, stack) } @@ -840,7 +840,7 @@ func (p *ControllerRegistor) recoverPanic(rw http.ResponseWriter, r *http.Reques if !ok { break } - Critical(file, line) + Critical(fmt.Sprintf("%s:%d", file, line)) } } }