From 4c5251c205255acd757392a889cc5a5f3c64a53f Mon Sep 17 00:00:00 2001 From: Greg Anderson Date: Thu, 10 Jan 2019 22:53:08 -0800 Subject: [PATCH] AL-1038: Fixes #1697, terminus whoami no longer exits with return code 1 when unauthenticated --- src/Commands/Auth/WhoamiCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/Auth/WhoamiCommand.php b/src/Commands/Auth/WhoamiCommand.php index dd933476c..d6f12cb6d 100644 --- a/src/Commands/Auth/WhoamiCommand.php +++ b/src/Commands/Auth/WhoamiCommand.php @@ -34,7 +34,7 @@ public function whoAmI() $user = $this->session()->getUser(); return new PropertyList($user->fetch()->serialize()); } else { - $this->log()->notice('You are not logged in.'); + throw new \Exception('You are not logged in.'); } } }