mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
🚌 next version preparation: new PreflightResult interface for hero handlers
Former-commit-id: ea2d7ab93889beaddfe269bd213d259d26df979f
This commit is contained in:
@@ -1056,6 +1056,10 @@ func getCaller() (string, int) {
|
||||
frame, more := frames.Next()
|
||||
file := frame.File
|
||||
|
||||
if strings.Contains(file, "src/testing/testing.go") {
|
||||
continue
|
||||
}
|
||||
|
||||
if !strings.Contains(file, "/kataras/iris") || strings.Contains(file, "/kataras/iris/_examples") || strings.Contains(file, "iris-contrib/examples") {
|
||||
if relFile, err := filepath.Rel(wd, file); err == nil {
|
||||
file = "./" + relFile
|
||||
|
||||
Reference in New Issue
Block a user