From bfd2e8ea81e21da761fe420a73e0e0472a074b0b Mon Sep 17 00:00:00 2001 From: justmd5 Date: Thu, 28 Sep 2023 17:59:34 +0800 Subject: [PATCH] update --- src/DeepLTranslator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DeepLTranslator.php b/src/DeepLTranslator.php index f0bc3d8..3707ead 100644 --- a/src/DeepLTranslator.php +++ b/src/DeepLTranslator.php @@ -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);