mirror of
https://github.com/Crocmagnon/fatcontext.git
synced 2024-11-25 01:18:09 +01:00
refactor: Update getReportMessage function to handle unsupported nested context types
This commit is contained in:
parent
b46089e786
commit
07aa8cc6a2
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ func getReportMessage(node ast.Node) string {
|
||||||
case *ast.FuncLit:
|
case *ast.FuncLit:
|
||||||
return "nested context in function literal"
|
return "nested context in function literal"
|
||||||
default:
|
default:
|
||||||
return "nested context"
|
return "unsupported nested context type"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue