From 6e1b5c10c16cf72368022411f852e8e1e30ca6b1 Mon Sep 17 00:00:00 2001 From: Mike Kistler Date: Thu, 28 Mar 2019 21:41:58 -0500 Subject: [PATCH] fix: missed metadata on other error [skip ci] --- Source/TextToSpeechV1/TextToSpeech.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/TextToSpeechV1/TextToSpeech.swift b/Source/TextToSpeechV1/TextToSpeech.swift index fee2eceff..cfae675d9 100644 --- a/Source/TextToSpeechV1/TextToSpeech.swift +++ b/Source/TextToSpeechV1/TextToSpeech.swift @@ -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 }