Closes #42: show error  cause when a function fails