Since you'll have to add logging in this file anyway, a bit more descriptive error message might be good.