better error code for EISDIR