Skip to content

Commit

Permalink
chore: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmitch14 authored and haaawk committed Oct 10, 2024
1 parent aad090e commit b332d6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/cmd/group_flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,15 +161,15 @@ func checkDumpFileFirstLines(name string, file *os.File) error {
if checkSQLiteFile(name) == nil {
return fmt.Errorf("you're trying to use a SQLite database file as a dump. Use the --from-db flag instead of --from-dump")
}
return fmt.Errorf("file doens't look like a dump: first line should be 'PRAGMA foreign_keys=OFF;'")
return fmt.Errorf("file doesn't look like a dump: first line should be 'PRAGMA foreign_keys=OFF;'")
}

scanner.Scan()
if scanner.Text() != "BEGIN TRANSACTION;" {
if checkSQLiteFile(name) == nil {
return fmt.Errorf("you're trying to use a SQLite database file as a dump. Use --from-db instead")
}
return fmt.Errorf("file doens't look like a dump: second line should be 'BEGIN TRANSACTION;'")
return fmt.Errorf("file doesn't look like a dump: second line should be 'BEGIN TRANSACTION;'")
}

if _, err := file.Seek(0, 0); err != nil {
Expand Down

0 comments on commit b332d6e

Please sign in to comment.