chore(repo): reinitialize repository
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package workspaceruntime
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func commandError(action, output string, err error) error {
|
||||
if err == nil {
|
||||
return nil
|
||||
}
|
||||
output = strings.TrimSpace(output)
|
||||
if output == "" {
|
||||
return fmt.Errorf("%s: %w", action, err)
|
||||
}
|
||||
return fmt.Errorf("%s: %s: %w", action, output, err)
|
||||
}
|
||||
Reference in New Issue
Block a user