silverstripe / sspak

Tool for managing bundles of db/assets from Silverstripe environments
http://silverstripe.github.io/sspak/
BSD 3-Clause "New" or "Revised" License
47 stars 34 forks source link

Missing database credentials message a bit cryptic #67

Open emteknetnz opened 6 years ago

emteknetnz commented 6 years ago

If I forget to include an _ss_environment.php file with database credentials, I get the following message from sspak

PHP Notice:  Undefined index: db_type in phar:///usr/local/bin/sspak/src/Webroot.php on line 81
PHP Stack trace:
PHP   1. {main}() /usr/local/bin/sspak:0
PHP   2. require() /usr/local/bin/sspak:5
PHP   3. SSPak->load() phar:///usr/local/bin/sspak/bin/sspak:43
PHP   4. Webroot->putdb() phar:///usr/local/bin/sspak/src/SSPak.php:422

would be nicer if it just said I'm missing credentials

dhensby commented 6 years ago

care to PR?