Add error handling for building with r.js and Less