Skip to content

Commit e2a34be

Browse files
author
Francesco Schirinzi
committed
NotionException: use status from http response
1 parent 4f75db6 commit e2a34be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Exceptions/NotionException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static function fromResponse(Response $response): NotionException
4646

4747
return new NotionException(
4848
$message,
49-
0,
49+
$response->status(),
5050
$response->toException()
5151
);
5252
}

0 commit comments

Comments
 (0)