File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ export class AzureDevOpsClient {
141141 fs . writeFileSync ( suggestion . path , Buffer . from ( lines . join ( '\n' ) ) ) ;
142142 }
143143 } catch ( e ) {
144- error ( `Failed to patch local file with multiple suggestions: ${ e } ` ) ;
144+ throw new Error ( `Failed to patch local file with multiple suggestions: ${ e } ` ) ;
145145 }
146146 } ) ;
147147
@@ -179,7 +179,7 @@ export class AzureDevOpsClient {
179179 this . project ,
180180 ) ;
181181 } catch ( e ) {
182- error ( `Failed to commit codespell suggestions to pull request: ${ e } ` ) ;
182+ throw new Error ( `Failed to commit codespell suggestions to pull request: ${ e } ` ) ;
183183 }
184184 }
185185
@@ -281,7 +281,7 @@ export class AzureDevOpsClient {
281281 ) ;
282282 } ) ;
283283 } catch ( e ) {
284- error ( `Failed to comment codespell suggestions on pull request: ${ e } ` ) ;
284+ throw new Error ( `Failed to comment codespell suggestions on pull request: ${ e } ` ) ;
285285 }
286286 }
287287
@@ -323,7 +323,7 @@ export class AzureDevOpsClient {
323323 } ) ;
324324 } ) ;
325325 } catch ( e ) {
326- error ( `Failed to process user commands in pull request: ${ e } ` ) ;
326+ throw new Error ( `Failed to process user commands in pull request: ${ e } ` ) ;
327327 }
328328 }
329329
You can’t perform that action at this time.
0 commit comments