diff --git a/netwerk/base/NetUtil.jsm b/netwerk/base/NetUtil.jsm index f46e0e50c124..7c8a1a95ed2f 100644 --- a/netwerk/base/NetUtil.jsm +++ b/netwerk/base/NetUtil.jsm @@ -155,8 +155,7 @@ this.NetUtil = { // are created providing the correct security flags in the loadinfo. // See nsILoadInfo for all available security flags and also the API // of NetUtil.newChannel() for details above. - Services.console.logStringMessage( - "Warning: NetUtil.asyncFetch() requires the channel to have " + + Cu.reportError("NetUtil.jsm: asyncFetch() requires the channel to have " + "one of the security flags set in the loadinfo (see nsILoadInfo). " + "Please create channel using NetUtil.newChannel()"); channel.asyncOpen(listener, null);