<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/63873>63873</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Refactor DebuginfodServer initialization error handling
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            code-cleanup,
            debuginfod
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          mysterymath
      </td>
    </tr>
</table>

<pre>
    Currently, DebuginfodServer crashes the program in its constructor if the HTTP Server cannot be set up (i.e., if some aspect of setting up the wrapped HTTPServer instance fails). This responsibility more properly falls on the program instantiating the DebuginfodServer instance. Accordingly, this should be changed to use a factory method, so that the instantiating program can decide how to handle failure.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxskstunTAQhp_GbEZBHHNuLFikiY66rNq8gLEHPJWxkWdIRJ--Midp1csKCWa-b_5fGGaaImKvTp_U6bkyq_iU-3ljwbzNRnw1JLf1T2vOGCVsSj_BMw7rRHFM7hvmV8xgs2GPDOIRlpymbGagCCQMNkWWvFpJGWjcJz6_vHyBj00TYxIYEBgF1gWUvlKNddHQCJxmBMMLWoE0lhmhOJW5AnrLZlnQ7cB3HkUWEy3CaCiw0l0NL54YMvKSItNAgWSDOeX90gVz2GA0ITCk-Nf9hSRkdmP58k_sD1kNj9am7ChO94KkKNmnNbgSzXoTJ3QgCVZGMDCa0scGM4pPrmxwAvFGds-f5o97rIng0JJD8OmtsLyJLtyTrhnryvWt69rOVNgfzteuPetrc6l879rx0HT21Fk8aNfo8XhxR3s6H3BojlfrKup1o9vmcjgeOn0-XurOjfqgbXM6o75046iODc6GQh3C61ynPFXEvGJ_bq-XtgpmwMD7H6S1TQ4fbEAT10VprfST0tr9aq68Oj1XuS-kh2GdWB2bQCz8my0kAfuveG_pf7WTkAn0wwilCJhzyvcyKE7VmkPvRRZW7aPSN6VvE4lfh9qmWelbsbw_HpacvqMVpW97HFb6tif6GQAA__8I-BH5">