Skip to content

Commit 4e7a7a6

Browse files
committed
Fix errors on succesful export / import #565
1 parent d003a9d commit 4e7a7a6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ See [STATUS.md](server/STATUS.md) to learn more about which features will remain
1313
- Fix index issue happening when deleting a single property in a sorted collection #545
1414
- Update JS assets & playwright
1515
- Fix initial indexing bug #560
16+
- Fix errors on succesful export / import #565
1617

1718
## [v0.34.0] - 2022-10-31
1819

server/src/bin.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ async fn main() -> () {
3030
eprintln!("{}: {}", "Error".red(), e.message);
3131
std::process::exit(1);
3232
}
33+
std::process::exit(0);
3334
}
3435

3536
async fn main_wrapped() -> errors::AtomicServerResult<()> {
@@ -86,7 +87,7 @@ async fn main_wrapped() -> errors::AtomicServerResult<()> {
8687
appstate.store.import(&readstring, &parse_opts)?;
8788

8889
println!("Sucesfully imported {:?} to store.", import_opts.file);
89-
std::process::exit(0);
90+
Ok(())
9091
}
9192
Some(config::Command::ShowConfig) => {
9293
println!("{:#?}", config);

0 commit comments

Comments
 (0)