Updated logger calls
This commit is contained in:
parent
8e885dd555
commit
1bd48b980f
4 changed files with 13 additions and 11 deletions
|
|
@ -3,7 +3,7 @@ package Commands
|
|||
import (
|
||||
"fmt"
|
||||
"github.com/urfave/cli/v2"
|
||||
"log"
|
||||
"lpm-cli/Tools"
|
||||
)
|
||||
|
||||
func SearchCommand() *cli.Command{
|
||||
|
|
@ -19,7 +19,7 @@ func SearchCommand() *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
|
||||
},
|
||||
|
|
|
|||
Reference in a new issue