Skip to content

Commit

Permalink
fix: avoid to throw literal exception
Browse files Browse the repository at this point in the history
  • Loading branch information
emyann committed Jun 6, 2019
1 parent 4de3396 commit bec21d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function isPromise(object: any) {
// tslint:disable-next-line:triple-equals
return Promise.resolve(object) == object;
} else {
throw 'Promise not supported in your environment';
throw new Error('Promise not supported in your environment');
}
}
export function get(object: any, path: string) {
Expand Down

0 comments on commit bec21d6

Please sign in to comment.