diff --git a/RevidCLI.go b/RevidCLI.go index d83a5644..2832ffcb 100644 --- a/RevidCLI.go +++ b/RevidCLI.go @@ -28,6 +28,7 @@ LICENSE package main import ( + "fmt" "errors" "os/exec" "flag" @@ -407,9 +408,9 @@ func createRevidInstance(){ // If the config does have a logger, use it to output error, otherwise // just output to std output if config.Logger != nil { - config.Logger.Log("FATAL ERROR", err) + config.Logger.Log("FATAL ERROR", err.Error()) } else { - fmt.Printf("FATAL ERROR: %v", err) + fmt.Printf("FATAL ERROR: %v", err.Error()) } } }