small typo in build events
better error