File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -32,9 +32,13 @@ pub async fn handle_triage(
32
32
let start_artifact = ctxt
33
33
. artifact_id_for_bound ( start. clone ( ) , true )
34
34
. ok_or ( format ! ( "could not find start commit for bound {:?}" , start) ) ?;
35
+ // This gives a better error, but is still not great -- the common case here
36
+ // is that we've had a 422 error and as such had a fork. It's possible we
37
+ // could diagnose that and give a nicer error here telling the user which
38
+ // commit to use.
35
39
let mut next = next_commit ( & start_artifact, & master_commits)
36
40
. map ( |c| Bound :: Commit ( c. sha . clone ( ) ) )
37
- . unwrap ( ) ; // TODO: handle no next commit
41
+ . ok_or ( format ! ( " no next commit for {:?}" , start_artifact ) ) ? ;
38
42
39
43
let mut report = HashMap :: new ( ) ;
40
44
let mut before = start. clone ( ) ;
You can’t perform that action at this time.
0 commit comments