1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

fix some bugs

This commit is contained in:
Chris Jones 2011-07-15 17:40:37 -07:00
parent bbc940724f
commit 6f3fff5798
2 changed files with 52 additions and 8 deletions

View file

@ -111,7 +111,10 @@ function nextPage(task, loadError) {
page.startRendering(
ctx,
function() { snapshotCurrentPage(page, task, failure); });
function(e) {
snapshotCurrentPage(page, task,
(!failure && e) ? ('render: '+ e) : failure);
});
} catch(e) {
failure = 'page setup: '+ e.toString();
}