Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
heyjun committed Jan 24, 2024
1 parent 701573c commit 57b0a76
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 @@ -115,7 +115,7 @@ public function result(int $type = self::TYPE_FORMAT)

return [
'status' => self::ERROR, 'code' => $error['code'],
'message' => sprintf('%s,what:%s', $error['message'], $error['data']['what']), 'data' => [],
'message' => sprintf('%s,what:%s', $error['message'] ?? '', $error['data']['what'] ?? ''), 'data' => [],
];
}

Expand Down

0 comments on commit 57b0a76

Please sign in to comment.