mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	just overload to not get it by mistake again ... (#14440)
This commit is contained in:
		| @@ -73,6 +73,11 @@ type APIRedirect struct{} | |||||||
| // swagger:response string | // swagger:response string | ||||||
| type APIString string | type APIString string | ||||||
|  |  | ||||||
|  | // ServerError responds with error message, status is 500 | ||||||
|  | func (ctx *APIContext) ServerError(title string, err error) { | ||||||
|  | 	ctx.Error(http.StatusInternalServerError, title, err) | ||||||
|  | } | ||||||
|  |  | ||||||
| // Error responds with an error message to client with given obj as the message. | // Error responds with an error message to client with given obj as the message. | ||||||
| // If status is 500, also it prints error to log. | // If status is 500, also it prints error to log. | ||||||
| func (ctx *APIContext) Error(status int, title string, obj interface{}) { | func (ctx *APIContext) Error(status int, title string, obj interface{}) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 6543
					6543