Commits

Dan Villiom Podlaski Christiansen committed d342602

Exception work better if you actually raise them…

Comments (0)

Files changed (1)

hgopenurl/__init__.py

         if rev:
             path += '/rev/%s' % rev
     elif fallbackssh:
-        util.Abort("don't know how to convert regular SSH repositories into an "
-                   "web address")
+        raise util.Abort("don't know how to convert regular SSH repositories "
+                         "into an web address")
     else:
-        util.Abort("unsupported URL schema")
+        raise util.Abort("unsupported URL schema")
         
 
     return url