Skip to content

Commit 5111e98

Browse files
author
l
committed
fix variable regex error handling
1 parent e97b701 commit 5111e98

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/bin/pr-metadata-validator.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@ async fn check_pr_file_changes(
300300
None => return Ok(None), // There is no match defined for this task, don't do any more checks
301301
};
302302
let directory_matcher = Regex::new(directory_description_regex)
303-
.context("Invalid regex for task directory match")?;
303+
.with_context(|| format!("Check CHANGE_DIR declaration in issue {}", task_issue.html_url))
304+
.expect("Failed to compile regex");
304305
// Get all of the changed files
305306
let pr_files = all_pages("changed files in pull request", octocrab, async || {
306307
octocrab

0 commit comments

Comments
 (0)