makeWebpackError = (error, hook) => {
	if (error instanceof WebpackError) return error;
	return new HookWebpackError(error, hook);
}
@param {Error} error an error
@param {string} hook name of the hook
@returns {WebpackError} a webpack error