Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 7cf25aa

Browse files
Merge pull request #1 from shamimmoeen/master
Fix wrong error message
2 parents 9122a3e + 399a481 commit 7cf25aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DeepL.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ protected function checkLanguages($sourceLanguage, $destinationLanguage)
204204
$destinationLanguage = strtoupper($destinationLanguage);
205205

206206
if (!in_array($destinationLanguage, $this->destinationLanguages)) {
207-
throw new DeepLException(sprintf('The language "%s" is not supported as destination language.', $sourceLanguage));
207+
throw new DeepLException(sprintf('The language "%s" is not supported as destination language.', $destinationLanguage));
208208
}
209209

210210
return true;
@@ -318,4 +318,4 @@ protected function request($url, $body)
318318

319319
return $translationsArray;
320320
}
321-
}
321+
}

0 commit comments

Comments
 (0)