Skip to content

Commit

Permalink
Added timestamp return line on exception
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeus committed Aug 31, 2018
1 parent 713fc67 commit ce317ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/TrustedTimestamps.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ public static function getTimestampFromAnswer($base64_response_string, $timestam
? strtotime($matches[1])
: DateTime::createFromFormat($timestamp_format, trim($matches[1]))
->getTimestamp();
if (empty($response_time)) {
throw new Exception("The Timestamp was not found in: ".$retline);
}
break;
}
}
Expand Down

0 comments on commit ce317ef

Please sign in to comment.