Skip to content

Commit

Permalink
Merge pull request #956 from watson-developer-cloud/fix-2.0
Browse files Browse the repository at this point in the history
fix: missed metadata on other error [skip ci]
  • Loading branch information
Mike Kistler authored Mar 29, 2019
2 parents 1ce1cf4 + 6e1b5c1 commit d1e06f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/TextToSpeechV1/TextToSpeech.swift
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ public class TextToSpeech {
// repair the WAV header
var wav = data
guard WAVRepair.isWAVFile(data: wav) else {
let error = WatsonError.other(message: "Expected returned audio to be in WAV format")
let error = WatsonError.other(message: "Expected returned audio to be in WAV format", metadata: nil)
completionHandler(nil, error)
return
}
Expand Down

0 comments on commit d1e06f9

Please sign in to comment.