Fix the position of try

In addition, correction of missing designation
https://github.com/vapor/mysql-provider/blob/master/Sources/VaporMySQL/Provider.swift#L61-L75
This commit is contained in:
isaoeka 2016-11-27 23:30:56 +09:00
parent 0799f8ed3d
commit 0471eb6c16
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)
...