Better error messages (somewhat)
This commit is contained in:
parent
c7c111e1c0
commit
7dc4dd9da6
@ -1,4 +1,32 @@
|
|||||||
{
|
{
|
||||||
|
"CRASH": {
|
||||||
|
"description": "",
|
||||||
|
"message": "Interal Browser Error"
|
||||||
|
},
|
||||||
|
"FILE_FAILED": {
|
||||||
|
"description": "",
|
||||||
|
"message": "File Access Error"
|
||||||
|
},
|
||||||
|
"NETWORK_FAILED": {
|
||||||
|
"description": "",
|
||||||
|
"message": "Network Failure"
|
||||||
|
},
|
||||||
|
"SERVER_BAD_CONTENT": {
|
||||||
|
"description": "",
|
||||||
|
"message": "Not Found"
|
||||||
|
},
|
||||||
|
"SERVER_FAILED": {
|
||||||
|
"description": "",
|
||||||
|
"message": "Server Error"
|
||||||
|
},
|
||||||
|
"SERVER_FORBIDDEN": {
|
||||||
|
"description": "",
|
||||||
|
"message": "Forbidden"
|
||||||
|
},
|
||||||
|
"SERVER_UNAUTHORIZED": {
|
||||||
|
"description": "",
|
||||||
|
"message": "Unauthorized"
|
||||||
|
},
|
||||||
"add-download": {
|
"add-download": {
|
||||||
"description": "Action for adding a download",
|
"description": "Action for adding a download",
|
||||||
"message": "Add Download"
|
"message": "Add Download"
|
||||||
|
@ -188,7 +188,7 @@ export class DownloadItem extends EventEmitter {
|
|||||||
return this.eta;
|
return this.eta;
|
||||||
}
|
}
|
||||||
if (this.error) {
|
if (this.error) {
|
||||||
return this.error;
|
return _(this.error) || this.error;
|
||||||
}
|
}
|
||||||
return StateTexts.get(this.state);
|
return StateTexts.get(this.state);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user