mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-30 10:42:28 +01:00
fixes:
'tag' command works once more 'source ~/' shows the matches fdopen checks whether the file exists, and throws a more-readable error if it doesn't 'help' work if the current document is a XULDocument (it shows the help in a new tab)
This commit is contained in:
@@ -87,10 +87,14 @@ function LocalFile(file, mode, perms, tmp)
|
||||
{
|
||||
this.localFile = classes[LOCALFILE_CTRID].createInstance(nsILocalFile);
|
||||
this.localFile.initWithPath(file);
|
||||
if (!this.localFile.exists())
|
||||
throw "No such file or directory";
|
||||
}
|
||||
else if (file instanceof nsILocalFile)
|
||||
{
|
||||
this.localFile = file;
|
||||
if (!this.localFile.exists())
|
||||
throw "No such file or directory";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user