Removed errinfo, which is not used anywhere and is buggy.