Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Initial error refactoring (make errors less HTTP specific) #15

Merged
merged 1 commit into from May 7, 2013

Conversation

lightsofapollo
Copy link
Contributor

No description provided.

@lightsofapollo
Copy link
Contributor Author

@KevinGrandon r?

}

callback(
new Errors.InvalidEntrypoint('no useful location information found')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a thought.. Maybe you'd save a bit of time on startup work if you instead lazy-init'd the errors? E.g., make the folllowing callable:

  new Error('InvalidEntrypoint, 'no useful location information found') 

I suppose the current implementation might be a bit more cleaner though.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For internal CalDAV use (and use on the main thread) I would like instanceof to work? Make sense?

@KevinGrandon
Copy link
Contributor

@lightsofapollo Looks good to me! 👍

KevinGrandon added a commit that referenced this pull request May 7, 2013
Initial error refactoring (make errors less HTTP specific)
@KevinGrandon KevinGrandon merged commit 9b5dd29 into mozilla-b2g:master May 7, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants