X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=source%2Fmircoders%2Fproducer%2FScriptCallProducer.java;h=8497f4387c8e7bb0c8ef151fabb1f82ed3b0a3ad;hb=f43cfce8f9591bbd9315c6965e909c8780446da5;hp=e17087a62b5ed99b49957cfa1221a424177823f9;hpb=02fb4e10776d7029bb46c61c2fbec25d81645cdf;p=mir.git diff --git a/source/mircoders/producer/ScriptCallProducer.java b/source/mircoders/producer/ScriptCallProducer.java index e17087a6..8497f438 100755 --- a/source/mircoders/producer/ScriptCallProducer.java +++ b/source/mircoders/producer/ScriptCallProducer.java @@ -12,7 +12,7 @@ public class ScriptCallProducer implements mir.producer.Producer { script = aScript; } - public void produce( PrintWriter aLogger ) throws ProducerException { + public void produce( PrintWriter aLogger ) throws ProducerFailure { Process process; int returnValue; @@ -26,7 +26,7 @@ public class ScriptCallProducer implements mir.producer.Producer { catch (Throwable e) { aLogger.println("Exception has occurred: " + e.getMessage() + ":"); e.printStackTrace(aLogger); - throw new ProducerException(e); + throw new ProducerFailure("Executing script failed",e); } } }