import DiscError from appropriate module