Skip to content
This repository was archived by the owner on Mar 23, 2021. It is now read-only.

Commit 234d184

Browse files
committed
Improve error message when running examples wihtout environment
1 parent de771cb commit 234d184

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

new_project/examples/btc_eth/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function createSwap(maker: Actor, taker: Actor): SwapRequest {
148148
function checkEnvFile(path: string) {
149149
if (!fs.existsSync(path)) {
150150
console.log(
151-
"Could not find %s file. Did you run \\`create-comit-app start-env\\`?",
151+
"Could not find file %s. Did you run `yarn create comit-app start-env`?",
152152
path
153153
);
154154
process.exit(1);

new_project/examples/erc20_btc/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ function createSwap(maker: Actor, taker: Actor): SwapRequest {
165165
function checkEnvFile(path: string) {
166166
if (!fs.existsSync(path)) {
167167
console.log(
168-
"Could not find %s file. Did you run \\`create-comit-app start-env\\`?",
168+
"Could not find file %s. Did you run `yarn create comit-app start-env`?",
169169
path
170170
);
171171
process.exit(1);

new_project/examples/separate_apps/src/lib.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export interface Actor {
4545
export function checkEnvFile(path: string) {
4646
if (!fs.existsSync(path)) {
4747
console.log(
48-
"Could not find %s file. Did you run \\`create-comit-app start-env\\`?",
48+
"Could not find file %s. Did you run `yarn create comit-app start-env`?",
4949
path
5050
);
5151
process.exit(1);

0 commit comments

Comments
 (0)