You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by th...@apache.org on 2021/04/08 18:22:21 UTC
[tapestry-5] 02/02: TAP5-2672: Improve reporting for errors in JS
modules
This is an automated email from the ASF dual-hosted git repository.
thiagohp pushed a commit to branch 5.6.x
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git
commit 465024dec93adbb5e3b910c76a641366e45c58ce
Author: Thiago H. de Paula Figueiredo <th...@arsmachina.com.br>
AuthorDate: Thu Apr 8 15:10:57 2021 -0300
TAP5-2672: Improve reporting for errors in JS modules
---
.../main/coffeescript/META-INF/modules/t5/core/console.coffee | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/console.coffee b/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/console.coffee
index b0785ca..fa25cb9 100644
--- a/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/console.coffee
+++ b/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/console.coffee
@@ -201,6 +201,15 @@ define ["./dom", "underscore", "./bootstrap"],
if modules and modules.length > 0
message += """, modules #{modules.join(", ")}"""
+ if err.fileName
+ message += """, #{err.fileName}"""
+
+ if err.lineNumber
+ message += """, line #{err.lineNumber}"""
+
+ if err.columnNumber
+ message += """, line #{err.columnNumber}"""
+
exports.error message