Exit with error code when user is not logged in

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=226390329
This commit is contained in:
shicong 2018-12-20 14:04:41 -08:00 committed by Michael Muller
parent a153f8ec77
commit f83e96c448

View file

@ -170,6 +170,7 @@ final class RegistryCli implements AutoCloseable, CommandRunner {
System.err.println("===================================================================");
System.err.println("You must login using 'nomulus login' prior to running this command.");
System.err.println("===================================================================");
System.exit(1);
} else {
throw ex;
}