ansilove.js

A script to display ANSi and artscene related file formats on web pages
Log | Files | Refs | README | LICENSE

commit 7df8f7e55b9e242ef9fbe8fdba179b7934984de1
parent 974ef6c06711e685704e9afa90b04d3af2988804
Author: Andy Herbert <andy.herbert@gmail.com>
Date:   Fri,  8 Nov 2013 06:22:17 +0000

Updated error handling doc.

Diffstat:
MREADME.md | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md @@ -71,12 +71,12 @@ And for ANSImations, the animate function returns a controller object which when }); }, {"bits": "9"}); -If a function is passed after the options object of any method, then it will be called in the event that the file cannot be fetched with the http status code. +If a function is passed after the options object of any method, then it will be called in the event that the file cannot be fetched, or if an error occured whilst attempting to interpret the file. AnsiLove.render("example.ans", function (canvas, sauce) { ... - }, {}, function (httpStatus) { - alert("A " + httpStatus + " error occured."); + }, {}, function (message) { + alert("Error: " + message); }); ### PC font options: