Update error message on api key gen failure. #2871