provide default error message

This commit is contained in:
deepak1556 2015-05-11 10:24:44 +05:30
parent 9ab53b0e4b
commit 24bcd3b21e
2 changed files with 4 additions and 2 deletions

View file

@ -106,7 +106,8 @@ class CustomProtocolRequestJob : public AdapterRequestJob {
GetWeakPtr(), path));
return;
} else if (name == "RequestErrorJob") {
int error;
// Default value net::ERR_NOT_IMPLEMENTED
int error = -11;
dict.Get("error", &error);
BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,

View file

@ -89,7 +89,8 @@ Create a request job which sends a buffer as response.
* `code` Integer
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:
* 0- 99 System related errors