Skip to content

Commit 1766d19

Browse files
jmhodgeskyleconroy
authored andcommitted
log filename of unparsable mysql schema file (#246)
Updates #245
1 parent 761bfc5 commit 1766d19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/mysql/parse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func parsePath(sqlPath string, inPkg string, s *Schema, settings dinosql.Generat
4343
}
4444
queries, err := parseContents(filename, contents, s, settings)
4545
if err != nil {
46-
return nil, err
46+
return nil, fmt.Errorf("Failed to parse contents of file [%v]: %w", filename, err)
4747
}
4848
parsedQueries = append(parsedQueries, queries...)
4949
}

0 commit comments

Comments
 (0)