From df89046ceb298a823714a4ee0e4f4eb58e063293 Mon Sep 17 00:00:00 2001 From: "quentin.schmick" Date: Tue, 2 Aug 2022 12:22:18 -0400 Subject: [PATCH] Updated message to include limit amount --- src/ShipEngineClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ShipEngineClient.php b/src/ShipEngineClient.php index 3d5bee0..c26da53 100644 --- a/src/ShipEngineClient.php +++ b/src/ShipEngineClient.php @@ -297,7 +297,7 @@ private static function incrementRequestCount(ShipEngineConfig $config) : void $nextExpire = now()->seconds(0)->addMinute(); if ($count > $config->requestLimitPerMinute) { - throw new RateLimitExceededException(retryAfter: new DateInterval('PT1S'), message: 'Internal conifg API rate limit exceeded.'); + throw new RateLimitExceededException(retryAfter: new DateInterval('PT1S'), message: 'Internal config API rate limit of ' . $config->requestLimitPerMinute . ' exceeded.'); } Cache::put('shipengine.api-request.count', $count + 1, $nextExpire);