[MRG]Better error message when a thunk fail: print user code line when node was created

Ready to merge I think