Skip to content

Commit

Permalink
feat(worker): minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
CWood-sdf committed Apr 25, 2024
1 parent 787ce0a commit b1c0c89
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore(build): generate color data"
commit_message: "chore(worker): generate color data"
commit_user_name: "github-actions[bot]"
commit_user_email: "github-actions[bot]@users.noreply.github.com"
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
5 changes: 4 additions & 1 deletion updater/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ async fn get_repo_colschemes(repo: Repo) -> Result<Vec<String>, Box<dyn std::err
Err(_) => {}
};
// println!("{}", json);
let json: Vec<PathData> = serde_json::from_str(&json)?;
let json: Vec<PathData> = match serde_json::from_str(&json) {
Ok(v) => v,
Err(e) => return Err(format!("{} from str: {}", e.to_string(), json).into()),
};

let mut ret = Vec::new();

Expand Down

0 comments on commit b1c0c89

Please sign in to comment.