I tried fixing this in 181128c5 and forgot to pass the right error in one place. This commit fixes it.
181128c5