Return a more useful error when being inited with an empty string. Bug 187605,

patch by bugzilla@chucker.rasdi.net (So"ren 'Chucker' Kuklau), r=dougt, sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@136227 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2003-01-13 06:26:19 +00:00
parent e0850c2493
commit b5f23ea756

View File

@@ -65,7 +65,7 @@ nsLocalFile::InitWithFile(nsILocalFile *aFile)
nsCAutoString path;
aFile->GetNativePath(path);
if (path.IsEmpty())
return NS_ERROR_FAILURE;
return NS_ERROR_INVALID_ARG;
return InitWithNativePath(path);
}
#endif