From f83e96c448cfea6659e1733c8a6a6851bda3a5e1 Mon Sep 17 00:00:00 2001 From: shicong Date: Thu, 20 Dec 2018 14:04:41 -0800 Subject: [PATCH] Exit with error code when user is not logged in ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=226390329 --- java/google/registry/tools/RegistryCli.java | 1 + 1 file changed, 1 insertion(+) diff --git a/java/google/registry/tools/RegistryCli.java b/java/google/registry/tools/RegistryCli.java index 7baa09e1e..2d02cb9bf 100644 --- a/java/google/registry/tools/RegistryCli.java +++ b/java/google/registry/tools/RegistryCli.java @@ -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; }