Skip to content

Commit

Permalink
Merge pull request #10 from noppoMan/noppoMan-patch-1
Browse files Browse the repository at this point in the history
make body data as message when error is unknown
  • Loading branch information
noppoMan committed May 8, 2017
2 parents 076705c + 6c273f4 commit 89e9026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Core/AWSClient.swift
Expand Up @@ -193,7 +193,7 @@ public struct AWSClient {
throw AWSRawError(errorCode: errorCode, message: message)
}

throw AWSRawError(errorCode: "Unknown", message: nil)
throw AWSRawError(errorCode: "Unknown", message: String(data: data, encoding: .utf8))
}

var outputDict: [String: Any] = [:]
Expand Down

0 comments on commit 89e9026

Please sign in to comment.