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:11:06 UTC

[tapestry-5] branch master updated: 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 master
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git


The following commit(s) were added to refs/heads/master by this push:
     new 3aed575  TAP5-2672: Improve reporting for errors in JS modules
3aed575 is described below

commit 3aed575a9cf4ff4dd436fe5063a73e09dec52748
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