One other small Nit: `errorString` doesn't sound great as a variable name for this, specially since there is an `errString` variable. Maybe something like `entryType` or `fileType` would be better.