From b5f23ea7562c47470e0256007d08c5558d73dc73 Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Mon, 13 Jan 2003 06:26:19 +0000 Subject: [PATCH] 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 --- mozilla/xpcom/io/nsLocalFileCommon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/xpcom/io/nsLocalFileCommon.cpp b/mozilla/xpcom/io/nsLocalFileCommon.cpp index 05130b62738..47e30ac4a73 100644 --- a/mozilla/xpcom/io/nsLocalFileCommon.cpp +++ b/mozilla/xpcom/io/nsLocalFileCommon.cpp @@ -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