diff options
| -rw-r--r-- | pyramid/config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyramid/config.py b/pyramid/config.py index 917b689b1..60d406a62 100644 --- a/pyramid/config.py +++ b/pyramid/config.py @@ -995,10 +995,10 @@ class Configurator(object): raise ConfigurationError('%s is a reserved tween name' % alias) if over is INGRESS: - raise ConfigurationError('%s cannot be over INGRESS') + raise ConfigurationError('%s cannot be over INGRESS' % name) if under is MAIN: - raise ConfigurationError('%s cannot be under MAIN') + raise ConfigurationError('%s cannot be under MAIN' % name) registry = self.registry tweens = registry.queryUtility(ITweens) |
