Split out error submodule