Skip to content

Commit 527f6e4

Browse files
committed
Better error on AnalyzeCNJCSV
1 parent 6e108a9 commit 527f6e4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cnj_validate.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package CNJ_Validate
22

33
import (
4-
"errors"
54
"fmt"
65
"github.com/Darklabel91/CNJ_Validate/CSV"
76
"github.com/Darklabel91/CNJ_Validate/Functions"
@@ -11,7 +10,7 @@ import (
1110
func AnalyzeCNJCSV(rawFilePath string, separator rune, nameResultFolder string) error {
1211
raw, err := CSV.ReadCsvFile(rawFilePath, separator)
1312
if err != nil {
14-
return errors.New("CSV must have only one collum with cnj (without title)")
13+
return err
1514
}
1615
err = createCSVs(raw, nameResultFolder)
1716
if err != nil {

0 commit comments

Comments
 (0)