Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
tianj7 committed Oct 23, 2024
1 parent dc16380 commit 739de56
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/testutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ func ExecSQLScript(sqlFilePath string, sourceId int) {
}
result := ExecSQLString(string(fileContents), sourceId)
if result.Error != nil && len(result.Error.Error()) > 0 {
panic(result.Error.Error())
errString := result.Error.Error()
fmt.Printf("Errors: %s\n", errString)
panic(errString)
}
}

Expand Down

0 comments on commit 739de56

Please sign in to comment.