Last active
November 3, 2020 18:45
-
-
Save mrjones2014/00434c2691be2e8768bf76beb6277a48 to your computer and use it in GitHub Desktop.
do-try-default-behavior-example.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// index.ts | |
EnvironmentUtils.runIfDevelopment(() => { | |
Do.configure({ | |
defaultErrorHandler: (result?: ResultRecord<any>, error?: any) => { | |
result != null && console.error(result); | |
error != null && console.error(error); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment