Skip to content

Commit 3b6c40a

Browse files
committed
ModuleRunner: use the log, not status, upon error
The log is for exceptional conditions, whereas the status reporting mechanism is for normal ones.
1 parent 0b249a4 commit 3b6c40a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/java/org/scijava/module/ModuleRunner.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,7 @@ private void cleanupAndBroadcastException(final String title,
201201
final Throwable t)
202202
{
203203
if (es != null) es.publish(new ModuleErroredEvent(module, t));
204-
if (ss != null) {
205-
ss.showStatus("Command errored: " + title);
206-
if (t != null) ss.warn(t.getMessage());
207-
}
204+
if (log != null) log.error("Command errored: " + title, t);
208205
}
209206

210207
private boolean isCanceled() {

0 commit comments

Comments
 (0)