Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

refactor(run): do not report project id in error message

Mahyar Mirrashed2e90addbc5de
diff --git a/cli/packages/cmd/run.go b/cli/packages/cmd/run.go
index 8d2e35fd5d..261a945f76 100644
--- a/cli/packages/cmd/run.go
+++ b/cli/packages/cmd/run.go
@@ -144,7 +144,7 @@ var runCmd = &cobra.Command{
util.HandleError(err, "Could not confirm project has environment")
}
if !hasEnvironment {
- util.HandleError(fmt.Errorf("project '%s' does not have environment '%s'", projectId, environmentName))
+ util.HandleError(fmt.Errorf("project does not have environment '%s'", environmentName))
}
log.Debug().Msgf("Project '%s' has environment '%s'", projectId, environmentName)