llovelylip / galagosearch

Automatically exported from code.google.com/p/galagosearch
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

"galago <command>" with incorrect arguments results in exception #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
run 'galago search', 'galago search /some/file/that/does/not/exist', 'galago 
build', etc.

What is the expected output? What do you see instead?
it would be nice to see the help message for a particular command, but instead 
you get a variety of 
unhelpful exceptions:

$ galago search
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
    at org.galagosearch.core.tools.App.handleSearch(App.java:209)
    at org.galagosearch.core.tools.App.main(App.java:391)

$ galago search foo
gException in thread "main" java.io.IOException: java.io.FileNotFoundException: 
/usr0/jelsas/Data/foo/manifest (No such file or directory)
    at org.galagosearch.tupleflow.Parameters.parse(Parameters.java:641)
    at org.galagosearch.core.index.StructuredIndex.<init>(StructuredIndex.java:32)
    at 
org.galagosearch.core.retrieval.structured.StructuredRetrieval.<init>(Structured
Retrieval.java:37)
    at org.galagosearch.core.retrieval.Retrieval.instance(Retrieval.java:27)
    at org.galagosearch.core.tools.App.handleSearch(App.java:222)
    at org.galagosearch.core.tools.App.main(App.java:391)

$ galago build
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
    at org.galagosearch.core.tools.App.handleBuild(App.java:114)
    at org.galagosearch.core.tools.App.main(App.java:377)

Original issue reported on code.google.com by jel...@gmail.com on 28 Jan 2009 at 6:52

GoogleCodeExporter commented 9 years ago

Original comment by trevor.s...@gmail.com on 29 Jan 2009 at 5:04

GoogleCodeExporter commented 9 years ago

Original comment by trevor.s...@gmail.com on 29 Jan 2009 at 3:26