[daisy] [JIRA] Commented: (DSY-470) backup tool should provide
usefull error-msg in case of missing required params
Elvis Willems (JIRA)
issues at cocoondev.org
Mon Oct 29 09:14:29 CST 2007
[ http://issues.cocoondev.org//browse/DSY-470?page=comments#action_13452 ]
Elvis Willems commented on DSY-470:
-----------------------------------
As a result of my mailing list post, I uploaded a patch for this issue...
http://lists.cocoondev.org/pipermail/daisy/2007-October/007809.html
> backup tool should provide usefull error-msg in case of missing required params
> -------------------------------------------------------------------------------
>
> Key: DSY-470
> URL: http://issues.cocoondev.org//browse/DSY-470
> Project: Daisy
> Type: Improvement
> Components: Backup
> Versions: 2.0.1
> Reporter: Marc Portier
> Priority: Minor
> Attachments: BackupTool.java.patch
>
> The daisy-backup-tool requires to have a -l LOCATION option passed to it in the args.
> If it is not set a nasty NPE is thrown:
> java.lang.NullPointerException
> at java.io.File.<init>(File.java:194)
> at org.outerj.daisy.backupTool.BackupTool.main(BackupTool.java:69)
> It would be better to check if the argument is set (I suppose commons cli has stuff for this) and switch to providing the -h output with some additional message if it is not.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.cocoondev.org//secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
More information about the daisy
mailing list