FIxed long-standing issue where we mis-reported an error on wrapping DbDirectory.