@seamapi/nextlove-sdk-generator
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -56,3 +56,3 @@ export const generateSeamClient = ({ resource_clients, resource_object_names, }) => { | ||
$response = $this->client->request($method, $path, $options); | ||
$statusCode = $response->getStatusCode(); | ||
$status_code = $response->getStatusCode(); | ||
@@ -78,5 +78,7 @@ $res_json = null; | ||
if ($statusCode >= 400) { | ||
if ($status_code >= 400) { | ||
$error_message = $response->getReasonPhrase(); | ||
throw new Exception( | ||
"HTTP Error: [" . $statusCode . "] " . $method . " " . $path | ||
"HTTP Error: " . $error_message . " [" . $status_code . "] " . $method . " " . $path | ||
); | ||
@@ -83,0 +85,0 @@ } |
{ | ||
"name": "@seamapi/nextlove-sdk-generator", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "Utilities for building NextLove SDK Generators", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -69,3 +69,3 @@ import type { PhpClient } from "./php-client.js" | ||
$response = $this->client->request($method, $path, $options); | ||
$statusCode = $response->getStatusCode(); | ||
$status_code = $response->getStatusCode(); | ||
@@ -91,5 +91,7 @@ $res_json = null; | ||
if ($statusCode >= 400) { | ||
if ($status_code >= 400) { | ||
$error_message = $response->getReasonPhrase(); | ||
throw new Exception( | ||
"HTTP Error: [" . $statusCode . "] " . $method . " " . $path | ||
"HTTP Error: " . $error_message . " [" . $status_code . "] " . $method . " " . $path | ||
); | ||
@@ -96,0 +98,0 @@ } |
Sorry, the diff of this file is not supported yet
649872
8447