-
Notifications
You must be signed in to change notification settings - Fork 15.7k
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
Conversation
@@ -105,6 +105,14 @@ class CustomProtocolRequestJob : public AdapterRequestJob { | |||
base::Bind(&AdapterRequestJob::CreateFileJobAndStart, | |||
GetWeakPtr(), path)); | |||
return; | |||
} else if (name == "RequestErrorJob") { | |||
int error; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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..
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
40a0e58
to
24bcd3b
Compare
Thanks! |
protocol: adding error job to log error with custom protocols
Thanks a lot! 👍 |
Fixes #1189