From ad1e45118682c262862093626468d34ab92d2612 Mon Sep 17 00:00:00 2001 From: hanemile Date: Fri, 2 Nov 2018 23:09:04 +0100 Subject: corrected the logplus print function namechange --- file/file.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'file') diff --git a/file/file.go b/file/file.go index ce6ac9c..c5992a7 100644 --- a/file/file.go +++ b/file/file.go @@ -13,7 +13,7 @@ type File struct { func Open(path string) (File, error) { file, err := os.Open(path) if err != nil { - logplus.LogFError("openStarsCSV Panic! (cannot read file from %s)", path) + logplus.LogErrorf("openStarsCSV Panic! (cannot read file from %s)\n", path) } return File{f: file}, err } @@ -21,7 +21,7 @@ func Open(path string) (File, error) { func (file *File) ReadCSV() ([][]string, error) { lines, err := csv.NewReader(file.f).ReadAll() if err != nil { - logplus.LogError("openStarsCSV Panic! (cannot read the files content)") + logplus.LogErrorf("openStarsCSV Panic! (cannot read the files content)\n") } return lines, err } -- cgit 1.4.1