Skip to content

Commit

Permalink
feat(bulk-model-sync-gradle): show exceptions during mps import in th…
Browse files Browse the repository at this point in the history
…e terminal
  • Loading branch information
mhuster23 committed Feb 20, 2024
1 parent 3ab93a0 commit 409e976
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,13 @@ object MPSBulkSynchronizer {
return isModuleIncluded(moduleName, includedModuleNames, includedModulePrefixes)
}
println("Importing modules...")
ModelImporter(repoAsNode, continueOnError, childFilter = ::moduleFilter).importFilesAsRootChildren(jsonFiles)
try {
ModelImporter(repoAsNode, continueOnError, childFilter = ::moduleFilter).importFilesAsRootChildren(jsonFiles)
} catch (ex: Exception) {
// Exceptions are only visible in the MPS log file by default
ex.printStackTrace()
}

println("Import finished.")
}
}
Expand Down

0 comments on commit 409e976

Please sign in to comment.