File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
console/src/main/scala/io/joern/console Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,10 @@ trait BridgeBase extends InteractiveShell with ScriptExecution with PluginHandli
186
186
new PluginManager (InstallConfig ().rootPath).rm(config.rmPlugin.get)
187
187
} else if (config.scriptFile.isDefined) {
188
188
val scriptReturn = runScript(config)
189
- if (scriptReturn.isFailure) System .exit(1 )
189
+ if (scriptReturn.isFailure) {
190
+ println(scriptReturn.failed.get.getMessage)
191
+ System .exit(1 )
192
+ }
190
193
} else if (config.server) {
191
194
GlobalReporting .enable()
192
195
startHttpServer(config)
@@ -246,7 +249,7 @@ trait ScriptExecution { this: BridgeBase =>
246
249
def runScript (config : Config ): Try [Unit ] = {
247
250
val scriptFile = config.scriptFile.getOrElse(throw new AssertionError (" no script file configured" ))
248
251
if (! Files .exists(scriptFile)) {
249
- Try (throw new AssertionError (s " given script file $scriptFile does not exist " ))
252
+ Try (throw new AssertionError (s " given script file ` $scriptFile` does not exist" ))
250
253
} else {
251
254
val predefFile = createPredefFile(importCpgCode(config))
252
255
val scriptReturn = ScriptRunner .exec(
You can’t perform that action at this time.
0 commit comments