Do we have access to the label of the previous code chunk? We could add that to the error (or a text reading "before the first chunk" if not applicable). Also, I thought that in many cases the expression that raised the error can be deduced from the traceback.