Open Bug 1358434 Opened 7 years ago Updated 2 years ago

Obscure error when registering path handler without prefix /

Categories

(Testing :: General, enhancement, P3)

Version 3
enhancement

Tracking

(Not tracked)

People

(Reporter: leplatrem, Unassigned)

Details

I had this obscure error when writing tests.

     0:02.21 LOG: Thread-1 ERROR Unexpected exception 2147942487

And nothing else.

It seemed related to rust gecko bindings:

     servo/components/style/gecko_bindings/structs_release.rs
     8989:        NS_ERROR_ILLEGAL_VALUE = 2147942487,

After some research, I could see that it was coming from a missing leading '/' when doing this:

     const testserver = createHttpServer();
     gPort = testserver.identity.primaryPort;
     testserver.registerPathHandler("url/path/", handleRequest);

Would it be possible to raise some explicit error message in that case?
Summary: Obscure error when registering pat handler without prefix / → Obscure error when registering path handler without prefix /
Component: httpd.js → General
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.