allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [1/7] git commit: preserve error message if allowed_project_shortname fails
Date Fri, 19 Jul 2013 19:21:30 GMT
Updated Branches:
  refs/heads/cj/6456 b245920ec -> 37518bf03 (forced update)


preserve error message if allowed_project_shortname fails


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/5167a9d7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/5167a9d7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/5167a9d7

Branch: refs/heads/cj/6456
Commit: 5167a9d758abf13798ccd09fa475a6bde23fcffb
Parents: 099c565
Author: Dave Brondsema <dbrondsema@slashdotmedia.com>
Authored: Wed Jul 17 21:14:07 2013 +0000
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Wed Jul 17 21:14:07 2013 +0000

----------------------------------------------------------------------
 Allura/allura/lib/plugin.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/5167a9d7/Allura/allura/lib/plugin.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/plugin.py b/Allura/allura/lib/plugin.py
index 76a18ae..7626bdb 100644
--- a/Allura/allura/lib/plugin.py
+++ b/Allura/allura/lib/plugin.py
@@ -469,7 +469,7 @@ class ProjectRegistrationProvider(object):
             check_shortname = shortname
         allowed, err = self.allowed_project_shortname(check_shortname, neighborhood)
         if not allowed:
-            raise ValueError('Invalid project shortname: %s' % shortname)
+            raise ValueError('Invalid project shortname: %s error: %s' % (shortname, err))
 
         p = M.Project.query.get(shortname=shortname, neighborhood_id=neighborhood._id)
         if p:


Mime
View raw message