From c03d5f3af366ac1f8b26769826cecc3bfe491d14 Mon Sep 17 00:00:00 2001 From: Steve Kamerman Date: Sat, 18 May 2013 23:40:30 -0400 Subject: [PATCH] Fixed file path problem --- PHPCI/Plugin/Mysql.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PHPCI/Plugin/Mysql.php b/PHPCI/Plugin/Mysql.php index 41f99aa2..1d261300 100644 --- a/PHPCI/Plugin/Mysql.php +++ b/PHPCI/Plugin/Mysql.php @@ -91,9 +91,9 @@ class Mysql implements \PHPCI\Plugin throw new \Exception("Import statement must contiain an 'file' key"); } - $import_file = $query['file']; + $import_file = $this->phpci->buildPath . '/' . $query['file']; if (!is_readable($import_file)) { - throw new \Exception("Cannot open SQL import file"); + throw new \Exception("Cannot open SQL import file: $import_file"); } $database = isset($query['database'])? $query['database']: null;