Miguel/plugin refactor

Change previous line (can't comment because not in GitHub diff) to use `console.error`; since it's an error.