Skip to content

Commit badd15d

Browse files
committed
make gcs-bucket mandatory when uploading to GCS
1 parent 6339b4b commit badd15d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,10 @@ func run() (retVal error) {
197197
return fmt.Errorf("a bucket is mandatory when upload is s3")
198198
}
199199

200+
if opts.Upload == "gcs" && opts.GCSBucket == "" {
201+
return fmt.Errorf("a bucket is mandatory when upload is gcs")
202+
}
203+
200204
// Parse the connection information
201205
l.Verboseln("processing input connection parameters")
202206
conninfo, err := prepareConnInfo(opts.Host, opts.Port, opts.Username, opts.ConnDb)

0 commit comments

Comments
 (0)