Some languages provide maintainable ways to specify the number of "the current line". In C, for example, one can use the __LINE__ macro.
Does Mathematica have anything like that?
EDIT: Of course, this is not to be used in notebooks, but rather in *.m files.
Assertor stack printing to help you figure out what's going on. – b3m2a1 Jul 19 '17 at 13:43