Commit 5f4d1916 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-1054 Use sprintf.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 01032d9b
......@@ -160,7 +160,7 @@ class SqlStateMachine implements IStateMachine {
if ($errCode == 'HY000') {
throw new UnavailableException("SqlStateMachine->GetStateHash(): Database not available", $errCode, null, LOGLEVEL_WARN);
}
throw new StateNotFoundException("SqlStateMachine->GetStateHash(): Could not locate state with error code: ". $errCode);
throw new StateNotFoundException(sprintf("SqlStateMachine->GetStateHash(): Could not locate state with error code: %s", $errCode));
}
else {
// datetime->format("U") returns EPOCH
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment