Make quiet symlink loop checking the default.

Fixes #6665.
This commit is contained in:
Ben Newman
2016-04-06 11:04:09 -04:00
parent a36c204d7d
commit b1c3f22ff4

View File

@@ -201,7 +201,7 @@ class SymlinkLoopChecker {
this._realpathCache = {};
}
check(relDir, quietly) {
check(relDir, quietly = true) {
const absPath = files.pathJoin(this.sourceRoot, relDir);
try {
@@ -213,7 +213,7 @@ class SymlinkLoopChecker {
// else leave realPath undefined
}
if (realPath === undefined || _.has(this._seenPaths, realPath)) {
if (! realPath || _.has(this._seenPaths, realPath)) {
if (! quietly) {
buildmessage.error("Symlink cycle detected at " + relDir);
}