diff --git a/lib/internal/util/inspector.js b/lib/internal/util/inspector.js index 634d3302333..7d22fdc80ec 100644 --- a/lib/internal/util/inspector.js +++ b/lib/internal/util/inspector.js @@ -15,7 +15,7 @@ function sendInspectorCommand(cb, onError) { } finally { session.disconnect(); } - } catch (e) { + } catch { return onError(); } }