mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 00:20:25 +08:00 
			
		
		
		
	feat: add check misspelling (#1877)
This commit is contained in:
		@@ -146,7 +146,7 @@ func HandleAddGPGKeyError(ctx *context.APIContext, err error) {
 | 
			
		||||
	case models.IsErrGPGKeyAccessDenied(err):
 | 
			
		||||
		ctx.Error(422, "", "You do not have access to this gpg key")
 | 
			
		||||
	case models.IsErrGPGKeyIDAlreadyUsed(err):
 | 
			
		||||
		ctx.Error(422, "", "A key with the same keyid is allready in database")
 | 
			
		||||
		ctx.Error(422, "", "A key with the same keyid is already in database")
 | 
			
		||||
	default:
 | 
			
		||||
		ctx.Error(500, "AddGPGKey", err)
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user