[#284] emits an error event when local build fails