1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 08:08:00 +01:00

fix :source error message

This commit is contained in:
Doug Kearns
2008-09-28 12:10:54 +00:00
parent da752c8907
commit 3bf80a0bdd

View File

@@ -764,7 +764,7 @@ lookup:
{
if (!silent)
{
if (file.isDirectory())
if (file.exists() && file.isDirectory())
liberator.echomsg("Cannot source a directory: \"" + filename + "\"", 0);
else
liberator.echomsg("could not source: \"" + filename + "\"", 1);