Skip to content

Commit 6f264c3

Browse files
committed
Properly capture the error message via sprintf() before passing to exception constructor. Fixes ruckus#173
1 parent d8bfc6b commit 6f264c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Ruckusing/Util/Migrator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public static function get_migration_files($directories, $direction)
217217
if (!is_dir($path)) {
218218
if (mkdir($path, 0755, true) === FALSE) {
219219
throw new Ruckusing_Exception(
220-
"\n\tUnable to create migrations directory at %s, check permissions?", $path,
220+
sprintf("\n\tUnable to create migrations directory at %s, check permissions?", $path),
221221
Ruckusing_Exception::INVALID_MIGRATION_DIR
222222
);
223223
}

0 commit comments

Comments
 (0)