Move error module where it belongs