better internalPrototype error diagnostic

/cc @densh