feat(configuration): Add global configuration
also update some error messages
This commit is contained in:
parent
8cd4b4b10f
commit
f0485abfbb
6 changed files with 67 additions and 22 deletions
|
|
@ -43,9 +43,8 @@ impl JunoRequest for GRPCServer {
|
|||
|
||||
let files = match file_explorer::walk_dir(&path) {
|
||||
Ok(files) => files,
|
||||
Err(_err) => panic!("Error reading path: {:?}", path),
|
||||
Err(err) => return Err(Status::invalid_argument(err)),
|
||||
};
|
||||
eprintln!("DEBUGPRINT[2]: server.rs:44: files={:#?}", files);
|
||||
|
||||
let reply = GetFilesResponse {
|
||||
files: files.iter().map(|x| x.display().to_string()).collect(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue