report errors when passing invalid to context creation