Merge pull request #84 from isaoeka/master

[guide/provider] Fix the position of 'try'
This commit is contained in:
Tanner 2016-12-09 17:34:40 -05:00 committed by GitHub
commit 075fc30faf
1 changed files with 2 additions and 2 deletions

View File

@ -74,8 +74,8 @@ import VaporMySQL
let drop = Droplet()
let mysql = VaporMySQL.Provider(host: "localhost", user: "root")
try drop.addProvider(mysql)
let mysql = try VaporMySQL.Provider(host: "localhost", user: "root", password: "", database: "vapor")
drop.addProvider(mysql)
...