[Greasemonkey] Non-descript "Invalid url" error

Aaron Boodman zboogs at gmail.com
Tue Aug 30 05:23:44 EDT 2005


Fixed and checked in. 

On 8/29/05, Josh Staiger <joshstaiger at gmail.com> wrote:
> Hi all,
> 
> Big greasemonkey fan, and am very glad to see that 5.1 is out the
> door.  Thank you very much!
> 
> I do have a small suggestion, however.
> 
> On line 61 of xmlhttprequester.js, would it be possible to make the
> 'Invalid url' message a bit more descriptive if the user passes in an
> argument other than a string?
> 
> I had an old script that formerly passed the url to GM_xmlhttpRequest
> as an <a> link element, and it took a modest amount of frustration to
> figure out why this url had suddenly become invalid when I could
> GM_log it, and cut and paste it into my browser just fine.
> 
>   if (typeof url != "string") {
>     throw new Error("Invalid url: url must be of type string");
>   }
> 
> Thanks!
> 
> --
> Josh
> http://joshstaiger.org
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>


More information about the Greasemonkey mailing list