forked from gitea/gitea
		
	 ca00ca8ee4
			
		
	
	
		ca00ca8ee4
		
	
	
	
	
		
			
			This PR gitea'ises the macaron.Recovery() handler meaning that in the event of panic we get proper gitea 500 pages and the stacktrace is logged with the gitea logger. Signed-off-by: Andrew Thornton <art27@cantab.net>
		
			
				
	
	
		
			12 lines
		
	
	
		
			583 B
		
	
	
	
		
			Cheetah
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			583 B
		
	
	
	
		
			Cheetah
		
	
	
	
	
	
| {{template "base/head" .}}
 | |
| <div class="ui container center">
 | |
| 	<p style="margin-top: 100px"><img src="{{AppSubUrl}}/img/500.png" alt="500"/></p>
 | |
| 	<div class="ui divider"></div>
 | |
| 	<br>
 | |
| 	{{if .ErrorMsg}}<p>An error has occurred :</p>
 | |
| 	<pre style="text-align: left">{{.ErrorMsg}}</pre>{{end}}
 | |
| 	{{if .ShowFooterVersion}}<p>Application Version: {{AppVer}}</p>{{end}}
 | |
| 	{{if .IsAdmin}}<p>If you are sure this is Gitea bug, please search for issue on <a href="https://github.com/go-gitea/gitea/issues">GitHub</a> and open new issue if necessary.</p>{{end}}
 | |
| </div>
 | |
| {{template "base/footer" .}}
 |