1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-24 05:17:03 +00:00

Merge pull request #679 from corebreaker/get-reporter

Add GetReporter method for getting the Reporter. Fixes #678

Former-commit-id: c4aea6edbd657dec9c76e01b91fe1570f2b198f8
This commit is contained in:
Gerasimos (Makis) Maropoulos
2017-07-18 23:22:14 +03:00
committed by GitHub
2 changed files with 24 additions and 2 deletions

View File

@@ -108,6 +108,11 @@ func (rb *APIBuilder) GetReport() error {
return rb.reporter.Return()
}
// GetReporter returns the reporter for adding errors
func (rb *APIBuilder) GetReporter() *errors.Reporter {
return rb.reporter
}
// Handle registers a route to the server's rb.
// if empty method is passed then handler(s) are being registered to all methods, same as .Any.
//