Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Unified Diff: tools/js2c.py

Issue 1120593002: Fix error messages for extra files in js2c.py (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/js2c.py
diff --git a/tools/js2c.py b/tools/js2c.py
index 924ad7336bade9cc377355ac51c437244f6e7693..243f5dd58e20eb6ba04bab6970af53a915aaa459 100755
--- a/tools/js2c.py
+++ b/tools/js2c.py
@@ -441,10 +441,10 @@ def PrepareSources(source_files, extra_files, emit_js):
try:
lines = extra_filters(extra)
except Error as e:
- raise Error("In file %s:\n%s" % (source, str(e)))
+ raise Error("In file %s:\n%s" % (extra, str(e)))
result.modules.append(lines)
- name = os.path.basename(source)[:-3]
+ name = os.path.basename(extra)[:-3]
result.names.append(name)
return result
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698