File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,8 +14,7 @@ Error handler for CLI applications.
1414# Features
1515
1616- ποΈ Pretty [ colors] ( #%EF%B8%8F-colors ) , [ icons] ( #-icon ) and [ header] ( #-header )
17- - π£ [ Error class-specific] ( #-classes ) and [ custom] ( #custom-serialization )
18- handling
17+ - π£ [ Error class-specific] ( #-classes ) and [ custom] ( #-custom ) handling
1918- π [ Graceful exit] ( #-timeout )
2019- βοΈ [ Normalize] ( https://github.com/ehmicky/normalize-exception ) invalid errors
2120- π Log verbosity: [ message] ( #-silent ) , [ stack] ( #-stack ) ,
@@ -194,10 +193,13 @@ Specify [different options per error class](#error-class-specific). The object:
194193 or ` "default" ` (used if no ` error.name ` matches)
195194- Values are [ options] ( #options ) objects
196195
197- ## Custom serialization
196+ #### πͺ custom
198197
199- The output can be transformed/mapped by defining an ` error.beautiful(output) `
200- method returning a string.
198+ _ Type_ : ` string | symbol ` \
199+ _ Default_ : ` beautiful `
200+
201+ Name of a method to map the output. That method must take the output as a string
202+ argument, transform it then return it.
201203
202204<!-- eslint-disable fp/no-class -->
203205
You canβt perform that action at this time.
0 commit comments