From 6592ea4901e4852193f95b607accc9621eb8ffdc Mon Sep 17 00:00:00 2001 From: richardsonjack Date: Thu, 19 Apr 2018 18:43:24 +0930 Subject: [PATCH] fix log errors --- RevidCLI.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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()) } } }