[FIX] Bug in submodule error handling