summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/gotop/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/gotop/main.go b/cmd/gotop/main.go
index da4ee41..5feb075 100644
--- a/cmd/gotop/main.go
+++ b/cmd/gotop/main.go
@@ -346,7 +346,8 @@ func main() {
if ec < 2 {
logpath := filepath.Join(conf.ConfigDir.QueryCacheFolder().Path, logging.LOGFILE)
fmt.Println(tr.Value("error.checklog", logpath))
- fmt.Println(ioutil.ReadFile(logpath))
+ bs, _ := ioutil.ReadFile(logpath)
+ fmt.Println(string(bs))
}
}
os.Exit(ec)