Skip to content

Commit

Permalink
Disabling unhelpful console warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanLovely committed Nov 8, 2017
1 parent ac0e138 commit 46ae845
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/PatternLab/PatternData/Helpers/LineageHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ public function run() {

if (strpos($lineage, '/') === false) {
$fileName = $patternStoreData["pathName"].".".$patternExtension;
Console::writeWarning("you may have a typo in ".$fileName.". `".$lineage."` is not a valid pattern...");
// This doesn't work very consistently. @todo Improve error reporting when trying to include a Twig file that doesn't exist (b/c doing so simply outputs the path to the file you were trying to include, giving no error to user that include path had a typo)
// Console::writeWarning("you may have a typo in ".$fileName.". `".$lineage."` is not a valid pattern...");
}

}
Expand Down

0 comments on commit 46ae845

Please sign in to comment.