mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Expect Error instead of JSON string in markdown preview view
This commit is contained in:
@@ -52,8 +52,8 @@ class MarkdownPreviewView extends ScrollView
|
||||
getPath: ->
|
||||
@buffer.getPath()
|
||||
|
||||
setErrorHtml: (result)->
|
||||
try failureMessage = JSON.parse(result).message
|
||||
setErrorHtml: (result) ->
|
||||
failureMessage = result?.message
|
||||
|
||||
@html $$$ ->
|
||||
@h2 'Previewing Markdown Failed'
|
||||
|
||||
Reference in New Issue
Block a user