Skip to content

Commit b81704a

Browse files
zxan1285fyockm
authored andcommitted
fixed unhandled rejection issue (#107)
1 parent bc311a7 commit b81704a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
## [3.1.0] - Unreleased
7+
## [3.1.1] - Unreleased
8+
### Fixed
9+
- Exit status code on error
10+
11+
## [3.1.0] - 2019-03-14
812
### Added
913
- `AUTH0_EXCLUDED_CLIENTS` option has been added to the config. Works similar to `AUTH0_EXCLUDED_RULES` and `AUTH0_EXCLUDED_RESOURCE_SERVERS`. #102
1014

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ if (require.main === module) {
6868
log.debug(error.stack);
6969
}
7070

71-
if (msg.includes('Payload validation error')) {
71+
if (typeof msg === 'string' && msg.includes('Payload validation error')) {
7272
log.info('Please see https://github.com/auth0/auth0-deploy-cli#troubleshooting for common issues');
7373
}
7474
process.exit(1);

0 commit comments

Comments
 (0)