lib/uffizzi/cli/projects.rb in uffizzi-cli-0.1.2 vs lib/uffizzi/cli/projects.rb in uffizzi-cli-0.1.3
- old
+ new
@@ -7,10 +7,10 @@
module Uffizzi
class CLI::Projects
include ApiClient
def run
- return unless Uffizzi::AuthHelper.signed_in?
+ return 'You are not logged in' unless Uffizzi::AuthHelper.signed_in?
hostname = ConfigFile.read_option(:hostname)
response = fetch_projects(hostname)
if response[:code] == Net::HTTPOK