File tree Expand file tree Collapse file tree 6 files changed +294
-344
lines changed
Expand file tree Collapse file tree 6 files changed +294
-344
lines changed Original file line number Diff line number Diff line change @@ -84,8 +84,8 @@ class ErrorPolykeyCLIUnexpectedError<T> extends ErrorPolykeyCLI<T> {
8484 exitCode = sysexits . SOFTWARE ;
8585}
8686
87- class ErrorPolykeyCLISubprocessFailure < T > extends ErrorPolykeyCLI < T > {
88- static description = 'A subprocess failed to exit gracefully' ;
87+ class ErrorPolykeyCLIChildProcessFailure < T > extends ErrorPolykeyCLI < T > {
88+ static description = 'A child process failed to exit gracefully' ;
8989 exitCode = sysexits . UNKNOWN ;
9090}
9191
@@ -196,7 +196,7 @@ export {
196196 ErrorPolykeyCLIUncaughtException ,
197197 ErrorPolykeyCLIUnhandledRejection ,
198198 ErrorPolykeyCLIUnexpectedError ,
199- ErrorPolykeyCLISubprocessFailure ,
199+ ErrorPolykeyCLIChildProcessFailure ,
200200 ErrorPolykeyCLIAsynchronousDeadlock ,
201201 ErrorPolykeyCLINodePath ,
202202 ErrorPolykeyCLIClientOptions ,
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ class CommandEdit extends CommandPolykey {
120120 } ;
121121 const onError = ( e : Error ) => {
122122 cleanup ( ) ;
123- const error = new errors . ErrorPolykeyCLISubprocessFailure (
123+ const error = new errors . ErrorPolykeyCLIChildProcessFailure (
124124 `Failed to run command '${ process . env . EDITOR } '` ,
125125 { cause : e } ,
126126 ) ;
@@ -129,7 +129,7 @@ class CommandEdit extends CommandPolykey {
129129 const onClose = ( code : number | null ) => {
130130 cleanup ( ) ;
131131 if ( code !== 0 ) {
132- const error = new errors . ErrorPolykeyCLISubprocessFailure (
132+ const error = new errors . ErrorPolykeyCLIChildProcessFailure (
133133 `Editor exited with code ${ code } ` ,
134134 ) ;
135135 reject ( error ) ;
You can’t perform that action at this time.
0 commit comments