From 68697cb3ef244bea5454efe48dfde088520937c1 Mon Sep 17 00:00:00 2001 From: "waterson%netscape.com" Date: Sun, 19 Sep 1999 22:51:15 +0000 Subject: [PATCH] Increase utility of 'cannot load datasource' message; special-case skip 'rdf:null'. git-svn-id: svn://10.0.0.236/trunk@48278 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/rdf/content/src/nsRDFXULBuilder.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/mozilla/rdf/content/src/nsRDFXULBuilder.cpp b/mozilla/rdf/content/src/nsRDFXULBuilder.cpp index 8fbf902df06..dd7c5f82851 100644 --- a/mozilla/rdf/content/src/nsRDFXULBuilder.cpp +++ b/mozilla/rdf/content/src/nsRDFXULBuilder.cpp @@ -1396,6 +1396,10 @@ RDFXULBuilderImpl::CreateTemplateBuilder(nsIContent* aElement, rv = rdf_MakeAbsoluteURI(docURL, uri); if (NS_FAILED(rv)) return rv; + // A special 'dummy' datasource + if (uri.Equals("rdf:null")) + continue; + nsCOMPtr ds; // Some monkey business to convert the nsAutoString to a @@ -1417,7 +1421,13 @@ RDFXULBuilderImpl::CreateTemplateBuilder(nsIContent* aElement, // This is only a warning because the data source may not // be accessable for any number of reasons, including // security, a bad URL, etc. - NS_WARNING("unable to load datasource"); +#ifdef DEBUG + nsCAutoString msg; + msg += "unable to load datasource '"; + msg += nsCAutoString(uri); + msg += '\''; + NS_WARNING((const char*) msg); +#endif continue; }