diff --git a/examples/template.html b/examples/template.html
index f76a73e5f4..3e3c487275 100644
--- a/examples/template.html
+++ b/examples/template.html
@@ -169,6 +169,7 @@
}
};
})(),
+ printErr: function(text) { Module.print(text) },
canvas: (() => {
var canvas = document.getElementById('canvas');