Skip to content

Commit

Permalink
More verbose error slide (HTTP necessary)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Holy committed Mar 24, 2013
1 parent 8fd28a9 commit f6487dc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plugin/markdown/markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
return text;

};

var twrap = function(el) {
return '<script type="text/template">' + el + '</script>';
};

var slidifyMarkdown = function(markdown, separator, vertical) {

separator = separator || '^\n---\n$';
Expand Down Expand Up @@ -105,7 +105,8 @@
section.outerHTML = slidifyMarkdown( xhr.responseText, section.getAttribute('data-separator'), section.getAttribute('data-vertical') );
} else {
section.outerHTML = '<section data-state="alert">ERROR: The attempt to fetch ' + url + ' failed with the HTTP status ' + xhr.status +
'. Check your browser\'s JavaScript console for more details.</section>';
'. Check your browser\'s JavaScript console for more details.' +
'<p>Remember that you need to serve the presentation HTML from a HTTP server and the Markdown file must be there too.</p></section>';
}
}
};
Expand Down

0 comments on commit f6487dc

Please sign in to comment.