From 2eaf1c7fff8ac878bce178fd13e00b214e416b26 Mon Sep 17 00:00:00 2001 From: Herman Slatman Date: Wed, 11 Jan 2023 20:08:45 +0100 Subject: [PATCH] Change error message when `--admin-subject` and `--remote-management=false` --- command/ca/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/ca/init.go b/command/ca/init.go index ee1943a5..6e89c264 100644 --- a/command/ca/init.go +++ b/command/ca/init.go @@ -267,7 +267,7 @@ func initAction(ctx *cli.Context) (err error) { case firstSuperAdminSubject != "" && !enableRemoteManagement: // providing the first super admin subject only works with DB-backed provisioners, // thus remote management should be enabled. - return errs.IncompatibleFlagWithFlag(ctx, "admin-subject", "remote-management") + return errors.New("flag '--admin-subject' is only supported when '--remote-management' is enabled") } var password string