It would be wise to add a nice error message there so the developer actually knows why this error was raised without searching for an explaining comment.