throw instead of return console.warn
Merge pull request #26 from bjornstar/master

throw instead of return console.warn