Make stack trace annotation work

The code now unminifies all calls in the stack, including those outside
of app.js.

This requires the Python package sourcemap, recently added as a
dependency.

(imported from commit 550c73ad5bfe78a2c7169c11da0c95cbaac238d7)
This commit is contained in:
Scott Feeney
2013-07-12 16:01:31 -04:00
committed by Scott Feeney
parent 4b9c82fb97
commit c234190bc0
3 changed files with 28 additions and 113 deletions

View File

@@ -28,14 +28,14 @@ def get_full_paste():
os.system('stty cooked echo')
class Command(BaseCommand):
args = '<source map file>'
args = '<source map directory>'
help = '''Add source locations to a stack backtrace generated by minified code.
The currently checked out code should match the version that generated the error.'''
def handle(self, *args, **options):
if len(args) != 1:
raise CommandError('No source map file specified')
raise CommandError('No source map directory specified')
source_map = SourceMap(args[0])