Skip to content

Commit

Permalink
fix: not worked error checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Nedim Akar authored and Nedim Akar committed Oct 18, 2023
1 parent 7ebe0bf commit b8cebbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jetstream/datastore/datastore.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ func WaitForMigrations(db *sql.DB) error {
databaseVersionRec, err := dbVersionRepo.GetCurrentVersion()
if err != nil {
var errorMsg = err.Error()
if errors.Is(err, errorz.ErrNoSuchTable) {
if strings.Contains(err.Error(), errorz.ERR_NO_SUCH_TABLE) {
errorMsg = "Waiting for versions table to be created"
} else if errors.Is(err, errorz.ErrNoDatabaseVersionsFound) {
errorMsg = "Versions table is empty - waiting for migrations"
Expand Down

0 comments on commit b8cebbf

Please sign in to comment.