Skip to content

Commit

Permalink
Fix fatal statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi Junkert committed May 10, 2020
1 parent 790ac10 commit 1788331
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@ func processRow(mapper *DBMapper, state *LineState, inputLine string) (*LineStat

cmap := mapper.ColumnMapper(state.SchemaName, state.TableName, columnName)
if cmap == nil && viper.GetBool("process.inclusive") {
log.Fatal("Column '%s' does not exist. Please add to map file", columnName)
log.Fatalf("Column '%s.%s.%s' does not exist. Please add to Map file",
state.SchemaName, state.TableName, columnName)
os.Exit(1)
}
val := rowVals[i]
Expand Down

0 comments on commit 1788331

Please sign in to comment.