Skip to content

Commit 7a10d37

Browse files
committed
README: print dump filename instead of filename format
1 parent 77af944 commit 7a10d37

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ package main
88
import (
99
"database/sql"
1010
"fmt"
11+
"os"
1112

1213
"github.com/jamf/go-mysqldump"
1314
"github.com/go-sql-driver/mysql"
@@ -43,7 +44,7 @@ func main() {
4344
fmt.Println("Error dumping:", err)
4445
return
4546
}
46-
fmt.Printf("File is saved to %s", dumpFilenameFormat)
47+
fmt.Printf("File is saved to %s\n", dumper.Out.(*os.File).Name())
4748

4849
// Close dumper, connected database and file stream.
4950
dumper.Close()

0 commit comments

Comments
 (0)