fix: Suppress non-PMG error from Critical UI Error (#311)

* fix: Suppress non-PMG error from Critical UI Error

* fix: Code review fixes

---------

Co-authored-by: Sahil Bansal <bansalsahil315@gmail.com>
This commit is contained in:
Abhisek Datta
2026-05-29 14:49:53 +00:00
committed by GitHub
co-authored by Sahil Bansal
parent db1a5e58b3
commit 5018f8e2ff
25 changed files with 508 additions and 113 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ func NewPipCommand() *cobra.Command {
RunE: func(cmd *cobra.Command, args []string) error {
err := executePipFlow(cmd.Context(), args)
if err != nil {
ui.ErrorExit(err)
ui.ExitFromCommandError(err)
}
return nil
+1 -1
View File
@@ -20,7 +20,7 @@ func NewPip3Command() *cobra.Command {
RunE: func(cmd *cobra.Command, args []string) error {
err := executePip3Flow(cmd.Context(), args)
if err != nil {
ui.ErrorExit(err)
ui.ExitFromCommandError(err)
}
return nil
+1 -1
View File
@@ -20,7 +20,7 @@ func NewPoetryCommand() *cobra.Command {
RunE: func(cmd *cobra.Command, args []string) error {
err := executePoetryFlow(cmd.Context(), args)
if err != nil {
ui.ErrorExit(err)
ui.ExitFromCommandError(err)
}
return nil
+1 -1
View File
@@ -20,7 +20,7 @@ func NewUvCommand() *cobra.Command {
RunE: func(cmd *cobra.Command, args []string) error {
err := executeUvFlow(cmd.Context(), args)
if err != nil {
ui.ErrorExit(err)
ui.ExitFromCommandError(err)
}
return nil