Skip to content

Commit 10c7901

Browse files
committed
fix(actions): update return statements for downloadTemplate to improve error handling
1 parent 6972990 commit 10c7901

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

create-arkstack/src/Commands/CreateArkstackCommand.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ export class CreateArkstackCommand extends Command {
5050
this.info('Thanks for trying out our starter kit.')
5151
process.exit(0)
5252
}
53-
54-
return err
53+
54+
return err
5555
})
5656

5757
let { appName, description } = await inquirer
@@ -77,8 +77,8 @@ return err
7777
this.info('Thanks for trying out our starter kit.')
7878
process.exit(0)
7979
}
80-
81-
return err
80+
81+
return err
8282
})
8383

8484
let { location } = await inquirer
@@ -96,8 +96,8 @@ return err
9696
this.info('Thanks for trying out our starter kit.')
9797
process.exit(0)
9898
}
99-
100-
return err
99+
100+
return err
101101
})
102102

103103
/**
@@ -133,8 +133,8 @@ return err
133133
this.info('Thanks for trying out our starter kit.')
134134
process.exit(0)
135135
}
136-
137-
return err
136+
137+
return err
138138
})
139139

140140
pre = options.pre ?? pre

create-arkstack/src/actions.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,15 @@ export default class {
5454
this.skipInstallation = !install
5555
this.removeLockFile()
5656

57-
return await downloadTemplate(template, {
57+
const status = await downloadTemplate(template, {
5858
dir: this.location,
5959
auth,
6060
install,
6161
registry: await this.pm(),
6262
forceClean: false,
6363
})
64+
65+
return status
6466
}
6567

6668
async installPackage (name: string) {

0 commit comments

Comments
 (0)