Improve error messages mentioning parameters instead of arguments Closes GH-5999
Only set DIT type on successful initialization