mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Handle invalid issues (#18111)
* Handle invalid issues - When you hover over a issue reference, and the issue doesn't exist, it will just hang on the loading animation. - This patch fixes that by showing them the pop-up with a "Error occured" message. * Add I18N * refactor * fix comment for lint * fix unit test for i18n * fix unit test for i18n * add comments Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
		| @@ -207,7 +207,7 @@ func TestAPIGetReleaseByTag(t *testing.T) { | ||||
|  | ||||
| 	var err *api.APIError | ||||
| 	DecodeJSON(t, resp, &err) | ||||
| 	assert.EqualValues(t, "Not Found", err.Message) | ||||
| 	assert.NotEmpty(t, err.Message) | ||||
| } | ||||
|  | ||||
| func TestAPIDeleteReleaseByTagName(t *testing.T) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user