1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 08:18:52 -05:00

* sanity check in utorrent-postprocess for all those people messing up with passing cmdline parameters

This commit is contained in:
Reinhard Pointner 2013-02-12 14:06:54 +00:00
parent bbf01f4799
commit 81f2adc49a
2 changed files with 2 additions and 1 deletions

View File

@ -134,7 +134,7 @@ public class ArgumentProcessor {
CLILogger.finest("Done ヾ(@⌒ー⌒@)");
return 0;
} catch (Throwable e) {
CLILogger.log(Level.SEVERE, String.format("%s: %s", getRootCause(e).getClass().getSimpleName(), getRootCauseMessage(e)), e.getClass() == Exception.class ? null : getRootCause(e));
CLILogger.log(Level.SEVERE, String.format("%s: %s", getRootCause(e).getClass().getSimpleName(), getRootCauseMessage(e)), getRootCause(e).getClass() == Exception.class ? null : getRootCause(e));
CLILogger.finest("Failure (°_°)");
return -1;
}

View File

@ -5,6 +5,7 @@ def failOnError = _args.conflict == 'fail'
// print input parameters
_args.bindings?.each{ _log.finest("Parameter: $it.key = $it.value") }
args.each{ _log.finest("Argument: $it") }
args.findAll{ !it.exists() }.each{ throw new Exception("$it doesn't exist") }
// check user-defined pre-condition
if (tryQuietly{ ut_state != ut_state_allow }) {