Skip to content

Commit 54819f6

Browse files
authored
Fix exception message placeholders
Fixes incomplete error message `Cake\Core\Exception\Exception: AclNode::node() - Couldn't find {0} node identified by "{1}"`
1 parent de01882 commit 54819f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Model/Table/AclNodesTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public function node($ref = null)
185185
$query = $this->find('all', $queryData);
186186

187187
if ($query->count() == 0) {
188-
throw new Exception\Exception(__d('cake_dev', "AclNode::node() - Couldn't find {0} node identified by \"{1}\"", [$type, print_r($ref, true)]));
188+
throw new Exception\Exception(__d('cake_dev', "AclNode::node() - Couldn't find %s node identified by \"%s\"", [$type, print_r($ref, true)]));
189189
}
190190
}
191191

0 commit comments

Comments
 (0)