mitchellh/middleware — pull request #5 by craiglittle (2012-09-30 03:21:58+00:00)
Title: Raise an exception when attempting to insert before an invalid middleware

Builder raises an exception when attempting to insert *after* an invalid middleware, but not before. Note that `#delete` and `#replace` would still have inconsistent behavior around this.