Skip to content
Myr

Better error messages

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent a06cd0a · Browse files · 1 file+3 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−2 removed

  • other:+3 added−2 removed

1 file+3 added−2 removed

modified:flask/app.py+3 added-2 removed
572 unmodified lines
573 """574 if blueprint.name in self.blueprints:575 assert self.blueprints[blueprint.name] is blueprint, \576 'A blueprint\'s name collision ocurred between %r and ' \577 '%r.' % (blueprint, self.blueprints[blueprint.name])577 '%r. Both share the same name "%s"' % \578 (blueprint, self.blueprints[blueprint.name], blueprint.name)579 else:580 self.blueprints[blueprint.name] = blueprint580 blueprint.register(self, **options)581 blueprint.register(self, options)582583 def add_url_rule(self, rule, endpoint=None, view_func=None, **options):584 """Connects a URL rule. Works exactly like the :meth:`route`585 decorator. If a view_func is provided it will be registered with the
487 unmodified lines