Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
justmd5 committed Sep 28, 2023
1 parent 89042ee commit bfd2e8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DeepLTranslator.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function translate(string $query, string $to, string $from = 'auto', bool
}
$translateText = $query ?: '';
if (empty($translateText)) {
throw new Exception('please input translate text');
throw new Exception('please input translate text',__LINE__);
}
$id = rand(100000, 999999) * 1000;
$postData = static::initData($sourceLang, $targetLang);
Expand Down

0 comments on commit bfd2e8e

Please sign in to comment.