InvalidConfig exception instead of ArgumentError