Also fixes the return value of Parser.parse on errors, previously was just `:ok` due to the logger call in the end