Rename to hkt.sh
This commit is contained in:
16
node_modules/chrome-remote-interface/lib/errors.js
generated
vendored
Normal file
16
node_modules/chrome-remote-interface/lib/errors.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
class ProtocolError extends Error {
|
||||
constructor(request, response) {
|
||||
let {message} = response;
|
||||
if (response.data) {
|
||||
message += ` (${response.data})`;
|
||||
}
|
||||
super(message);
|
||||
// attach the original response as well
|
||||
this.request = request;
|
||||
this.response = response;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports.ProtocolError = ProtocolError;
|
||||
Reference in New Issue
Block a user