File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -94,15 +94,19 @@ impl Error for NapiError {
94
94
impl Display for NapiError {
95
95
fn fmt ( & self , formatter : & mut fmt:: Formatter ) -> fmt:: Result {
96
96
write ! ( formatter, "{}" , self . description( ) )
97
- . and_then ( |result| if let Some ( ref message) = self . message {
98
- write ! ( formatter, " ({})" , message)
99
- } else {
100
- Ok ( result)
97
+ . and_then ( |result| {
98
+ if let Some ( ref message) = self . message {
99
+ write ! ( formatter, " ({})" , message)
100
+ } else {
101
+ Ok ( result)
102
+ }
101
103
} )
102
- . and_then ( |result| if self . exception . is_some ( ) {
103
- write ! ( formatter, ", JavaScript exception attached" )
104
- } else {
105
- Ok ( result)
104
+ . and_then ( |result| {
105
+ if self . exception . is_some ( ) {
106
+ write ! ( formatter, ", JavaScript exception attached" )
107
+ } else {
108
+ Ok ( result)
109
+ }
106
110
} )
107
111
}
108
112
}
You can’t perform that action at this time.
0 commit comments