title: Get true stack trace of an error in lua pcall
body: <p>So for my pcall statements, I've been doing something like this</p>
  
  <pre><code>local status, err = pcall(fn)
  if not status then
       print(err)
       print(debug.stacktrace())
  end
  </code></pre>
  
  <p>This works fine for some basic stuff but the issue is that <code>debug.stacktrace()</code> returns the CURRENT relative stack trace, not the stack trace of the error. If the error within fn happened 10 levels down in the stack, then I wouldn't know where exactly it occurred, just that this pcall block is failing. I was wondering if there was a way to get the stack trace of the pcall and not the current stack trace. I tried <code>debug.stacktrace(err)</code> but it didn't make a difference.</p>