Skip to content

Commit

Permalink
Merge pull request #12 from PostHog/try
Browse files Browse the repository at this point in the history
chore: sometimes try your best
  • Loading branch information
fuziontech authored Jul 17, 2024
2 parents af982ea + dcef946 commit 6c94be7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion schemas.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import (
"database/sql"
"fmt"
"os"

log "github.com/sirupsen/logrus"
)

type Options struct {
Expand Down Expand Up @@ -69,7 +71,8 @@ func Compare(opts *Options) error {
if opts.Apply {
_, err = opts.DB2.Exec(tableCreateStmt)
if err != nil {
return fmt.Errorf("applying table '%s.%s' create statement: %v", dbName, tableName, err)
log.Errorf("applying table '%s.%s' create statement: %v", dbName, tableName, err)
continue
}
fmt.Printf("Applied table '%s.%s' to second ClickHouse instance\n", dbName, tableName)
} else {
Expand Down

0 comments on commit 6c94be7

Please sign in to comment.