Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
norareidy committed Sep 3, 2024
1 parent b8d1525 commit 68a9cab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/includes/quick-start/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ func main() {
}

uri := os.Getenv("MONGODB_URI")
link := "www.mongodb.com/docs/drivers/go/current/usage-examples/#environment-variable"
docs := "www.mongodb.com/docs/drivers/go/current/"
if uri == "" {
log.Fatal("Set your 'MONGODB_URI' environment variable. " +
"See: " + link)
"See: " + docs +
"usage-examples/#environment-variable")
}
client, err := mongo.Connect(options.Client().
ApplyURI(uri))
Expand Down

0 comments on commit 68a9cab

Please sign in to comment.