Remove REVERSEPROXY_ERROR
This commit is contained in:
+2
-2
@@ -114,7 +114,7 @@ function configureReverseProxy(app, callback) {
|
||||
assert.strictEqual(typeof callback, 'function');
|
||||
|
||||
reverseProxy.configureApp(app, { userId: null, username: 'apptask' }, function (error) {
|
||||
if (error) return callback(new BoxError(BoxError.REVERSEPROXY_ERROR, `Error configuring nginx: ${error.message}`));
|
||||
if (error) return callback(error);
|
||||
|
||||
callback(null);
|
||||
});
|
||||
@@ -125,7 +125,7 @@ function unconfigureReverseProxy(app, callback) {
|
||||
assert.strictEqual(typeof callback, 'function');
|
||||
|
||||
reverseProxy.unconfigureApp(app, function (error) {
|
||||
if (error) return callback(new BoxError(BoxError.REVERSEPROXY_ERROR, `Error unconfiguring nginx: ${error.message}`));
|
||||
if (error) return callback(error);
|
||||
|
||||
callback(null);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user