[Fixes #186] Improve the error message