tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject [2/2] git commit: Handle case where RequireJS passes error object w/o a modules property
Date Mon, 12 Aug 2013 23:57:46 GMT
Handle case where RequireJS passes error object w/o a modules property


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/85e53f92
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/85e53f92
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/85e53f92

Branch: refs/heads/master
Commit: 85e53f928e4a52cc8fbf6012f95d094a35f9d588
Parents: 80d22da
Author: Howard M. Lewis Ship <hlship@apache.org>
Authored: Mon Aug 12 11:50:14 2013 -0700
Committer: Howard M. Lewis Ship <hlship@apache.org>
Committed: Mon Aug 12 16:57:41 2013 -0700

----------------------------------------------------------------------
 .../main/coffeescript/META-INF/modules/t5/core/console.coffee   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/85e53f92/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/console.coffee
----------------------------------------------------------------------
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 694913a..6a8c0eb 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
@@ -169,8 +169,9 @@ define ["./dom", "underscore"],
         message += """: #{err.message}"""
 
       if err.requireType
-        message += """, modules #{err.requireModules.join(", ")}"""
-
+        modules = err.requireModules
+        if modules and modules.length > 0
+          message += """, modules #{modules.join(", ")}"""
 
       exports.error message
 


Mime
View raw message