( exception, truncate_message = False )
| 301 | |
| 302 | |
| 303 | def DisplayServerException( exception, truncate_message = False ): |
| 304 | serialized_exception = str( exception ) |
| 305 | |
| 306 | # We ignore the exception about the file already being parsed since it comes |
| 307 | # up often and isn't something that's actionable by the user. |
| 308 | if 'already being parsed' in serialized_exception: |
| 309 | return |
| 310 | vimsupport.PostVimMessage( serialized_exception, truncate = truncate_message ) |
| 311 | |
| 312 | |
| 313 | def _ToUtf8Json( data ): |
no outgoing calls
no test coverage detected