Skip to content

Commit

Permalink
response error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tanner0101 committed Jan 27, 2016
1 parent 99d0c89 commit fb6e75f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Response.swift
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,12 @@ public class Response {
self.contentType = contentType
}

public convenience init(error: string) {
let object: [string: any] = [
public convenience init(error: String) {
let object: [String: Any] = [
"error": true,
"message": error
]
try! self.init(status: .error, json: object as! anyobject)
try! self.init(status: .Error, json: object)
}

public convenience init(status: Status, html: String) {
Expand Down

0 comments on commit fb6e75f

Please sign in to comment.