Function cannon now reports errors