Skip to content

Commit

Permalink
fix(sync): Continue posting when when one post call fails (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
9Lukas5 authored Feb 18, 2023
1 parent 7450e68 commit f3cdd19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ pub fn run(args: Args) -> Result<()> {
if !args.skip_existing_posts {
if let Err(e) = post_to_mastodon(&mastodon, &toot, args.dry_run) {
eprintln!("Error posting toot to Mastodon: {e:#?}");
process::exit(5);
continue;
}
}
// Posting API call was successful: store text in cache to prevent any
Expand All @@ -153,7 +153,7 @@ pub fn run(args: Args) -> Result<()> {
if !args.skip_existing_posts {
if let Err(e) = rt.block_on(post_to_twitter(&token, &tweet, args.dry_run)) {
eprintln!("Error posting tweet to Twitter: {e:#?}");
process::exit(6);
continue;
}
}
// Posting API call was successful: store text in cache to prevent any
Expand Down

0 comments on commit f3cdd19

Please sign in to comment.