Skip to content

Commit

Permalink
build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
makalaaneesh committed Jan 8, 2025
1 parent 5ebc0f5 commit 3f048c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion yb-voyager/cmd/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ func validateSSLMode() {
if source.DBType == ORACLE || slices.Contains(validSSLModes[source.DBType], source.SSLMode) {
return
} else {
utils.ErrExit("Error: Invalid sslmode: %q. Valid SSL modes are %v", validSSLModes[source.DBType])
utils.ErrExit("Error: Invalid sslmode: %q. Valid SSL modes are %v", source.SSLMode, validSSLModes[source.DBType])
}
}

Expand Down
2 changes: 1 addition & 1 deletion yb-voyager/cmd/exportData.go
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,7 @@ func extractTableListFromString(fullTableList []sqlname.NameTuple, flagTableList
result := lo.Filter(fullTableList, func(tableName sqlname.NameTuple, _ int) bool {
ok, err := tableName.MatchesPattern(pattern)
if err != nil {
utils.ErrExit("Invalid table name pattern %q: %s", err)
utils.ErrExit("Invalid table name pattern %q: %s", pattern, err)
}
return ok
})
Expand Down
2 changes: 1 addition & 1 deletion yb-voyager/cmd/exportDataStatus.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func startExportPB(progressContainer *mpb.Progress, mapKey string, quitChan chan
time.Sleep(100 * time.Millisecond)
break
} else if err != nil { //error other than EOF
utils.ErrExit("Error while reading file %s: %v", tableDataFile, err)
utils.ErrExit("Error while reading file %s: %v", tableDataFile.Name(), err)
}
if isDataLine(line, source.DBType, &insideCopyStmt) {
tableMetadata.CountLiveRows += 1
Expand Down

0 comments on commit 3f048c2

Please sign in to comment.