Fixed custom error message bug. Fixes #429.
Built 1.2.1-dev