From 264d8cf00e5581a83d1ffee5d62ebf8bdad0260a Mon Sep 17 00:00:00 2001 From: Leonid Bugaev Date: Sat, 16 Feb 2019 09:19:04 +0100 Subject: [PATCH] Add more error handling --- output_file.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/output_file.go b/output_file.go index a72feb7..6f026d2 100644 --- a/output_file.go +++ b/output_file.go @@ -246,7 +246,9 @@ func (o *FileOutput) flush() { if stat, err := o.file.Stat(); err == nil { o.chunkSize = int(stat.Size()) - } + } else { + log.Println("Error accessing file sats", err) + } } }