Skip to content
代码片段 群组 项目
提交 b496afa4 编辑于 作者: Richard Chong's avatar Richard Chong 提交者: Chloe Liu
浏览文件

Adds error handling when empty PAT is provided

上级 436f3b1b
No related branches found
No related tags found
无相关合并请求
......@@ -32,6 +32,8 @@ def add_personal_access_token(personal_access_token)
# In this case skip this step and proceed to import project row
return unless has_element?(:personal_access_token_field)
raise ArgumentError, "No personal access token was provided" if personal_access_token.empty?
fill_element(:personal_access_token_field, personal_access_token)
click_element(:authenticate_button)
finished_loading?
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册