From 5458db23c0262714599b3165f7966454b5337e52 Mon Sep 17 00:00:00 2001 From: Muhittin Tan Date: Tue, 11 Dec 2018 10:17:07 +0300 Subject: [PATCH] bug fix --- src/commands/TranslateFilesCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/TranslateFilesCommand.php b/src/commands/TranslateFilesCommand.php index 6de6391..8496cde 100644 --- a/src/commands/TranslateFilesCommand.php +++ b/src/commands/TranslateFilesCommand.php @@ -91,7 +91,7 @@ private function translate($text,$locale){ curl_close($handle); if(isset($responseDecoded['error'])){ - echo $responseDecoded['error'][0]["message"]."\n"; + $this->error( $responseDecoded['error'][0]["message"]."\n"); exit; }