| Index: web/inc/rpc/rpc-error.html
|
| diff --git a/web/inc/rpc/rpc-error.html b/web/inc/rpc/rpc-error.html
|
| index e96d93875165c3c679fe9c0efd9a2faeb5a0e23e..8a529af734f52e52817f024ebd087de912e5ca83 100644
|
| --- a/web/inc/rpc/rpc-error.html
|
| +++ b/web/inc/rpc/rpc-error.html
|
| @@ -23,6 +23,18 @@
|
| GrpcError.prototype = Error();
|
| rpc.GrpcError = GrpcError;
|
|
|
| + function HttpError(code, description) {
|
| + if (code == null) {
|
| + throw Error('code is not set')
|
| + }
|
| + this.name = 'HttpError';
|
| + this.code = code;
|
| + this.description = description;
|
| + this.message = 'code = ' + code + ' desc = ' + description;
|
| + }
|
| + HttpError.prototype = Error();
|
| + rpc.HttpError = HttpError;
|
| +
|
| return luci;
|
| }(luci || {}));
|
| </script>
|
|
|