Skip to content

Commit d65f99e

Browse files
Exit with status code 1 when an error occurred.
1 parent b00f761 commit d65f99e

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

src/cli/commands/deploy.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export default ({ createContext, executor, ExecuteStep, projectConfig, requireVa
3333
console.log(`done`)
3434
} catch (e) {
3535
console.log(`error`, e)
36+
process.exit(1)
3637
}
3738
});
3839
}

src/cli/commands/metadata.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export default ({ createContext, executor, ExecuteStep, annotations: { getMetada
2828
console.log(`done`)
2929
} catch (e) {
3030
console.log(`error`, e)
31+
process.exit(1)
3132
}
3233
});
3334
}

src/cli/commands/package.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export default ({ createContext, executor, ExecuteStep, projectConfig, requireVa
3434
console.log(`done`)
3535
} catch (e) {
3636
console.log(`error`, e)
37+
process.exit(1)
3738
}
3839
});
3940
}

src/cli/commands/serverless.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ export default (api) => {
221221
console.log(`done`)
222222
} catch (e) {
223223
console.log(`error`, e)
224+
process.exit(1)
224225
}
225226
});
226227
},

src/cli/commands/start.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ export default ({ createContext, annotations: { getMetadata, constants, getFunct
153153
console.log(`Compilation complete.`)
154154
} catch (e) {
155155
console.log(`error`, e)
156+
process.exit(1)
156157
}
157158
});
158159
}

0 commit comments

Comments
 (0)