| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7cef3cf commit 91edebd
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -63,11 +63,21 @@ async function uploadFailedSarif( | |||
| 63 | 63 | logger | |
| 64 | 64 | ); | |
| 65 | 65 | if (uploadResult !== undefined && waitForProcessing) { | |
| 66 | - await uploadLib.waitForProcessing( | ||
| 67 | - repositoryNwo, | ||
| 68 | - uploadResult.sarifID, | ||
| 69 | - logger | ||
| 70 | - ); | ||
| 66 | + try { | ||
| 67 | + await uploadLib.waitForProcessing( | ||
| 68 | + repositoryNwo, | ||
| 69 | + uploadResult.sarifID, | ||
| 70 | + logger | ||
| 71 | + ); | ||
| 72 | + } catch (e) { | ||
| 73 | + if (e instanceof Error && e.message.includes("unsuccessful execution")) { | ||
| 74 | + logger.info( | ||
| 75 | + "Submitting a SARIF file for the failed run isn't yet supported, continuing." | ||
| 76 | + ); | ||
| 77 | + } else { | ||
| 78 | + throw e; | ||
| 79 | + } | ||
| 80 | + } | ||
| 71 | 81 | } | |
| 72 | 82 | } | |
| 73 | 83 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments