1
0
mirror of https://github.com/smallstep/cli.git synced 2025-08-09 03:22:43 +03:00

Change error message when --admin-subject and --remote-management=false

This commit is contained in:
Herman Slatman
2023-01-11 20:08:45 +01:00
parent f3799c24c4
commit 2eaf1c7fff

View File

@@ -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