Updated logger calls

This commit is contained in:
netbenix 2021-10-30 21:36:02 +02:00
parent 8e885dd555
commit 1bd48b980f
4 changed files with 13 additions and 11 deletions

View file

@ -3,14 +3,14 @@ package Commands
import (
"fmt"
"github.com/urfave/cli/v2"
"log"
"lpm-cli/Tools"
)
func PullCommand() *cli.Command{
return &cli.Command {
Name: "pull",
Usage: "Pull a package",
Description: "Pulls a package from the default registry server, or to a user-defined registry server.",
Description: "Pulls a package from the a registry server.",
HelpName: "pull",
Action: func(c *cli.Context) error {
//Do Stuff
@ -19,7 +19,7 @@ func PullCommand() *cli.Command{
OnUsageError: func(c *cli.Context, err error, isSubcommand bool) error {
if err != nil {
fmt.Printf("[ERROR] %s", err.Error())
log.Fatal(err)
Tools.ErrorLogger.Fatal(err)
}
return err
},