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(
3232 let start_artifact = ctxt
3333 . artifact_id_for_bound ( start. clone ( ) , true )
3434 . 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.
3539 let mut next = next_commit ( & start_artifact, & master_commits)
3640 . map ( |c| Bound :: Commit ( c. sha . clone ( ) ) )
37- . unwrap ( ) ; // TODO: handle no next commit
41+ . ok_or ( format ! ( " no next commit for {:?}" , start_artifact ) ) ? ;
3842
3943 let mut report = HashMap :: new ( ) ;
4044 let mut before = start. clone ( ) ;
You can’t perform that action at this time.
0 commit comments