From 3203af6b818d64c7a3db105d91e4faf40c22e4db Mon Sep 17 00:00:00 2001 From: liyang <liyang@hosecloud.com> Date: Sat, 6 Jun 2020 20:38:28 +0800 Subject: [PATCH] fix: typo in HookCodeFactory.js error message --- lib/HookCodeFactory.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/HookCodeFactory.js b/lib/HookCodeFactory.js index e327a08..c860ea0 100644 --- a/lib/HookCodeFactory.js +++ b/lib/HookCodeFactory.js @@ -9,7 +9,11 @@ class HookCodeFactory { this.config = config; this.options = undefined; this._args = undefined; - } + } + + content(options) { + throw new Error("Abstract: should be overridden"); + } create(options) { this.init(options);