1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 18:34:11 +01:00

Remove redundant error messages.

This commit is contained in:
Kris Maglione
2010-09-24 23:13:50 -04:00
parent e55cdb3433
commit 5257be7699

View File

@@ -322,14 +322,8 @@ lookup:
};
if (!file.exists() || !file.isReadable() || file.isDirectory()) {
if (!silent) {
if (file.exists() && file.isDirectory())
dactyl.echomsg("Cannot source a directory: " + filename.quote(), 0);
else
dactyl.echomsg("could not source: " + filename.quote(), 1);
dactyl.echoerr("E484: Can't open file " + filename);
}
if (!silent)
dactyl.echoerr("E484: Can't open file " + filename.quote());
return;
}