style(core): make error message more terse and pass jshint.

Signed-off-by: Johny Jose <johny@playlyfe.com>