Skip to content

Commit

Permalink
add default case
Browse files Browse the repository at this point in the history
  • Loading branch information
asteel-gsa committed May 30, 2024
1 parent 5b10a88 commit 2f1b6ae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/db_to_db.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ func LocalDatabaseSync(
fallthrough
case "restore":
truncate_tables(dest_db_creds, []string{table})
default:
logging.Logger.Printf("Correct operation not supplied. Please supply initial, backup, or restore")
os.Exit(-1)
}

psql_write := pipes.Psql(
Expand Down Expand Up @@ -109,6 +112,9 @@ func CgovDatabaseSync(
fallthrough
case "restore":
truncate_tables(dest_db_creds, []string{table})
default:
logging.Logger.Printf("Correct operation not supplied. Please supply initial, backup, or restore")
os.Exit(-1)
}

psql_write := pipes.Psql(
Expand Down

0 comments on commit 2f1b6ae

Please sign in to comment.