Skip to content

Commit 63d40e4

Browse files
committed
capturing if _patterns is missing
1 parent 2d2c0d5 commit 63d40e4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/PatternLab/PatternData.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ public static function gather($options = array()) {
113113

114114
// iterate over the patterns & related data and regenerate the entire site if they've changed
115115
// seems a little silly to use symfony finder here. not really giving me any power
116+
if (!is_dir(Config::getOption("patternSourceDir"))) {
117+
Console::writeError("having patterns is important. please make sure you've installed a starterkit and/or that ".Console::getHumanReadablePath(Config::getOption("patternSourceDir"))." exists...");
118+
}
116119
$patternObjects = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator(Config::getOption("patternSourceDir")), \RecursiveIteratorIterator::SELF_FIRST);
117120
$patternObjects->setFlags(\FilesystemIterator::SKIP_DOTS);
118121

0 commit comments

Comments
 (0)