mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-23 16:28:51 -05:00
* sanity check in utorrent-postprocess for all those people messing up with passing cmdline parameters
This commit is contained in:
parent
bbf01f4799
commit
81f2adc49a
@ -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;
|
||||
}
|
||||
|
@ -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 }) {
|
||||
|
Loading…
Reference in New Issue
Block a user