Add errors
Add error if height is not enough
Merge pull request #14 from Papiel/err-middleware

Err middleware