File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ If you wan to index documents, you can any of these methods:
63
63
* Run a TerminusDB installation and refer to real commits and databases
64
64
* Put up an endpoint that will issue the appropriate operations for a
65
65
commit id and a domain with the endpoint
66
- ` TERMINUSDB_CONTENT_ENDPOINT/{domain}?commit_id ={commit} `
66
+ ` TERMINUSDB_CONTENT_ENDPOINT/{domain}?commit ={commit} `
67
67
* use the ` load ` command with a file
68
68
69
69
In any of these cases, the indexer expects a content stream that will
Original file line number Diff line number Diff line change @@ -93,10 +93,13 @@ enum ResourceSpec {
93
93
} ,
94
94
}
95
95
96
- #[ derive( Debug ) ]
96
+ #[ derive( Debug , Error ) ]
97
97
enum SpecParseError {
98
+ #[ error( "Unknown URL Path" ) ]
98
99
UnknownPath ,
100
+ #[ error( "No task id" ) ]
99
101
NoTaskId ,
102
+ #[ error( "No commit id or domain id given" ) ]
100
103
NoCommitIdOrDomain ,
101
104
}
102
105
@@ -585,7 +588,10 @@ impl Service {
585
588
}
586
589
}
587
590
Ok ( _) => todo ! ( ) ,
588
- Err ( _) => todo ! ( ) ,
591
+ Err ( e) => Ok ( Response :: builder ( )
592
+ . status ( StatusCode :: NOT_FOUND )
593
+ . body ( e. to_string ( ) . into ( ) )
594
+ . unwrap ( ) ) ,
589
595
}
590
596
}
591
597
You can’t perform that action at this time.
0 commit comments