We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 750cdf1 commit 6bdd3ecCopy full SHA for 6bdd3ec
ironfish-cli/src/ui/retry.ts
@@ -3,6 +3,7 @@
3
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
import { ErrorUtils, Logger } from '@ironfish/sdk'
5
import { ux } from '@oclif/core'
6
+import { ExitError } from '@oclif/core/errors'
7
import { confirmList } from './prompt'
8
9
export async function retryStep<T>(
@@ -18,6 +19,10 @@ export async function retryStep<T>(
18
19
const result = await stepFunction()
20
return result
21
} catch (error) {
22
+ if (error instanceof ExitError) {
23
+ throw error
24
+ }
25
+
26
logger.log(`An Error Occurred: ${ErrorUtils.renderError(error)}`)
27
28
if (askToRetry) {
0 commit comments