Warn when hook is invalid.