Issue 115 eslint

I'm not overly happy with this... but i'm open to reviews before I delete it and try again.
Comments inline.
@Natim I made this code up (or more accurately copied it from a different file below). I'm not happy/comfortable with this at all.
ESLint was complaining that we weren't handling the error object.