Skip to content

Commit 6412c01

Browse files
authored
Update errors to relect error type (#81)
2 parents 3726d8f + cd166be commit 6412c01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Exception/Ga4Exception.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static function resetStack(): void
3434

3535
public static function throwMissingMeasurementId()
3636
{
37-
return new static("Timestamp must be numeric", static::REQUEST_MISSING_MEASUREMENT_ID);
37+
return new static("Missing Measurement ID", static::REQUEST_MISSING_MEASUREMENT_ID);
3838
}
3939

4040
public static function throwMissingApiSecret()
@@ -49,7 +49,7 @@ public static function throwMicrotimeInvalid($inp)
4949

5050
public static function throwMicrotimeExpired()
5151
{
52-
return new static("Timestamp is too old, max 3 days", static::MICROTIME_EXPIRED);
52+
return new static("Timestamp is too old, max 3 days from NOW", static::MICROTIME_EXPIRED);
5353
}
5454

5555
public static function throwRequestTooLarge(int $kb)

0 commit comments

Comments
 (0)