When adding a deploy key that already exists, display the title

Description

We should display the title of an existing deploy key if a user is trying to readd it

Screen_Shot_2017-03-09_at_10.08.16_AM

The problem is that I have a lot of keys and I don't know which key is matching and I can't change the machine key.

Proposal

Upon attempting to add a duplicated key, display the title of the existing key so it can be identified:

Fingerprint has already been taken by My Deploy Key

Provided that the following conditions are met:

  • The user adding the key has access to the existing deploy key

If the above conditions aren't met, the current generic message should be displayed:

Fingerprint has alredy been taken

And give away no further information about the existing deploy key