provide default error message
This commit is contained in:
parent
9ab53b0e4b
commit
24bcd3b21e
2 changed files with 4 additions and 2 deletions
|
@ -106,7 +106,8 @@ class CustomProtocolRequestJob : public AdapterRequestJob {
|
||||||
GetWeakPtr(), path));
|
GetWeakPtr(), path));
|
||||||
return;
|
return;
|
||||||
} else if (name == "RequestErrorJob") {
|
} else if (name == "RequestErrorJob") {
|
||||||
int error;
|
// Default value net::ERR_NOT_IMPLEMENTED
|
||||||
|
int error = -11;
|
||||||
dict.Get("error", &error);
|
dict.Get("error", &error);
|
||||||
|
|
||||||
BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,
|
BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,
|
||||||
|
|
|
@ -89,7 +89,8 @@ Create a request job which sends a buffer as response.
|
||||||
* `code` Integer
|
* `code` Integer
|
||||||
|
|
||||||
Create a request job which sets appropriate network error message to console.
|
Create a request job which sets appropriate network error message to console.
|
||||||
Code should be in the following range.
|
Default message is `net::ERR_NOT_IMPLEMENTED`. Code should be in the following
|
||||||
|
range.
|
||||||
|
|
||||||
* Ranges:
|
* Ranges:
|
||||||
* 0- 99 System related errors
|
* 0- 99 System related errors
|
||||||
|
|
Loading…
Reference in a new issue