0

I tried a few pure JS solutions, but they don't work with Angular (possibly because of $scope ?)

I have a common error reporting function, which will console.error() an error text & alert() it too.

I would also like it if the function could report the line number & the function name of the caller.

If it cannot be done in the function, then I suppose I could live with the caller adding these parameters, if they are available at that level.

Please note that there is not necessarily a JS error. I can call the function because I don't like the value of some of my data.

Mawg says reinstate Monica
  • 38,334
  • 103
  • 306
  • 551

0 Answers0