Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

protocol: adding error job to log error with custom protocols #1600

Merged
merged 2 commits into from
May 11, 2015

Conversation

deepak1556
Copy link
Member

Fixes #1189

screen shot 2015-05-07 at 1 15 17 pm

@@ -105,6 +105,14 @@ class CustomProtocolRequestJob : public AdapterRequestJob {
base::Bind(&AdapterRequestJob::CreateFileJobAndStart,
GetWeakPtr(), path));
return;
} else if (name == "RequestErrorJob") {
int error;
Copy link
Contributor

Choose a reason for hiding this comment

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

We should have a default error here in case user didn't specify one.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah yeah, but what would be the default ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe net::ERR_NOT_IMPLEMENTED.

Copy link
Member Author

Choose a reason for hiding this comment

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

or net::ERR_TIMED_OUT ? will add the default value to the docs..

Copy link
Contributor

Choose a reason for hiding this comment

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

net::ERR_TIMED_OUT makes it look like a connection error.

Copy link
Member Author

Choose a reason for hiding this comment

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

cool, added net::ERR_NOT_IMPLEMENTED as default.

@deepak1556 deepak1556 force-pushed the protocol_error_patch branch from 40a0e58 to 24bcd3b Compare May 11, 2015 04:55
@zcbenz
Copy link
Contributor

zcbenz commented May 11, 2015

Thanks!

zcbenz added a commit that referenced this pull request May 11, 2015
protocol: adding error job to log error with custom protocols
@zcbenz zcbenz merged commit 4a195e6 into electron:master May 11, 2015
@Wortex17
Copy link

Thanks a lot! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error feedback with custom protocol handler
3 participants