Skip to content

Commit 9e5edd2

Browse files
Adding pending and fix readme
1 parent f429fbc commit 9e5edd2

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ If you wan to index documents, you can any of these methods:
6363
* Run a TerminusDB installation and refer to real commits and databases
6464
* Put up an endpoint that will issue the appropriate operations for a
6565
commit id and a domain with the endpoint
66-
`TERMINUSDB_CONTENT_ENDPOINT/{domain}?commit_id={commit}`
66+
`TERMINUSDB_CONTENT_ENDPOINT/{domain}?commit={commit}`
6767
* use the `load` command with a file
6868

6969
In any of these cases, the indexer expects a content stream that will

src/server.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,13 @@ enum ResourceSpec {
9393
},
9494
}
9595

96-
#[derive(Debug)]
96+
#[derive(Debug, Error)]
9797
enum SpecParseError {
98+
#[error("Unknown URL Path")]
9899
UnknownPath,
100+
#[error("No task id")]
99101
NoTaskId,
102+
#[error("No commit id or domain id given")]
100103
NoCommitIdOrDomain,
101104
}
102105

@@ -585,7 +588,10 @@ impl Service {
585588
}
586589
}
587590
Ok(_) => todo!(),
588-
Err(_) => todo!(),
591+
Err(e) => Ok(Response::builder()
592+
.status(StatusCode::NOT_FOUND)
593+
.body(e.to_string().into())
594+
.unwrap()),
589595
}
590596
}
591597

0 commit comments

Comments
 (0)