I think it's a mistake to start arbitrarily overriding what Dsymbol::error does, as it aims for consistency. Your rationale for overriding it has nothing to do with this particular error message.

Also, module names don't always line up with file names - the module declaration can set any module name.