diff options
author | hanemile <hanemile@protonmail.com> | 2018-11-02 23:09:04 +0100 |
---|---|---|
committer | hanemile <hanemile@protonmail.com> | 2018-11-02 23:09:04 +0100 |
commit | ad1e45118682c262862093626468d34ab92d2612 (patch) | |
tree | 484fd93fbea1eccdc3c9a32ec27cee930895ab25 /file | |
parent | 13023f761c8233a562d2ff8e61bf485ef04f03d1 (diff) |
corrected the logplus print function namechange
Diffstat (limited to 'file')
-rw-r--r-- | file/file.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |