summaryrefslogtreecommitdiff
path: root/modules/gallery_unit_test
diff options
context:
space:
mode:
authorChris Kelly <ckdake@ckdake.com>2008-11-05 21:52:22 +0000
committerChris Kelly <ckdake@ckdake.com>2008-11-05 21:52:22 +0000
commitdbf0fda99b2751378d924f6f8fda7509eb1c04b3 (patch)
tree483b0feda1802077a5066a1c9730b86020029008 /modules/gallery_unit_test
parent74cefadb19ba51d909286543276f3f0937a34f6e (diff)
better instructions/error handling
Diffstat (limited to 'modules/gallery_unit_test')
-rw-r--r--modules/gallery_unit_test/controllers/test.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/gallery_unit_test/controllers/test.php b/modules/gallery_unit_test/controllers/test.php
index 33621a07..4a019dcd 100644
--- a/modules/gallery_unit_test/controllers/test.php
+++ b/modules/gallery_unit_test/controllers/test.php
@@ -26,12 +26,14 @@ class Test_Controller extends Controller {
$original_config = DOCROOT . "var/database.php";
$test_config = VARPATH . "database.php";
if (!file_exists($original_config)) {
- print "Please create $original and create a 'unit_test' database configuration.\n";
+ print "Please copy kohana/config/database.php to $original_config.\n";
+ print "Then, add a \$config['unit_test'] database configuration in $original_config.\n";
+ return;
} else {
copy($original_config, $test_config);
$db_config = Kohana::config('database');
if (empty($db_config['unit_test'])) {
- print "Please create create a 'unit_test' database configuration in $db_config.\n";
+ print "Please create a \$config['unit_test'] database configuration in $test_config.\n";
return;
}