Skip to content

Commit

Permalink
Update errors to relect error type (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
aawnu committed Jan 26, 2024
2 parents 3726d8f + cd166be commit 6412c01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Exception/Ga4Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static function resetStack(): void

public static function throwMissingMeasurementId()
{
return new static("Timestamp must be numeric", static::REQUEST_MISSING_MEASUREMENT_ID);
return new static("Missing Measurement ID", static::REQUEST_MISSING_MEASUREMENT_ID);
}

public static function throwMissingApiSecret()
Expand All @@ -49,7 +49,7 @@ public static function throwMicrotimeInvalid($inp)

public static function throwMicrotimeExpired()
{
return new static("Timestamp is too old, max 3 days", static::MICROTIME_EXPIRED);
return new static("Timestamp is too old, max 3 days from NOW", static::MICROTIME_EXPIRED);
}

public static function throwRequestTooLarge(int $kb)
Expand Down

0 comments on commit 6412c01

Please sign in to comment.