Skip to content

Commit 32e519d

Browse files
committed
Change erro message and code
Signed-off-by: Stiliyan Ivanov <[email protected]>
1 parent ea21814 commit 32e519d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,8 @@ public static function responseToArray($response)
367367
}
368368
} catch (\Exception $exception) {
369369
throw new Exception(
370-
'Malformed response contents.',
371-
'malformed-response-contents',
370+
'Invalid json response.',
371+
'invalid-json-response',
372372
$exception,
373373
$exception->getMessage(),
374374
$contents

src/Exception.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function getDescription()
7777
}
7878

7979
/**
80-
* Get raw LinkedIn response.
80+
* Get LinkedIn raw response.
8181
*
8282
* @return string
8383
*/

0 commit comments

Comments
 (0)