You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2013/07/17 23:16:25 UTC

git commit: preserve error message if allowed_project_shortname fails

Updated Branches:
  refs/heads/master 099c5659d -> 5167a9d75


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/master
Commit: 5167a9d758abf13798ccd09fa475a6bde23fcffb
Parents: 099c565
Author: Dave Brondsema <db...@slashdotmedia.com>
Authored: Wed Jul 17 21:14:07 2013 +0000
Committer: Dave Brondsema <db...@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: