Skip to content

Commit 409e976

Browse files
committed
feat(bulk-model-sync-gradle): show exceptions during mps import in the terminal
1 parent 3ab93a0 commit 409e976

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

bulk-model-sync-mps/src/main/kotlin/org/modelix/mps/model/sync/bulk/MPSBulkSynchronizer.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,13 @@ object MPSBulkSynchronizer {
8888
return isModuleIncluded(moduleName, includedModuleNames, includedModulePrefixes)
8989
}
9090
println("Importing modules...")
91-
ModelImporter(repoAsNode, continueOnError, childFilter = ::moduleFilter).importFilesAsRootChildren(jsonFiles)
91+
try {
92+
ModelImporter(repoAsNode, continueOnError, childFilter = ::moduleFilter).importFilesAsRootChildren(jsonFiles)
93+
} catch (ex: Exception) {
94+
// Exceptions are only visible in the MPS log file by default
95+
ex.printStackTrace()
96+
}
97+
9298
println("Import finished.")
9399
}
94100
}

0 commit comments

Comments
 (0)