diff --git a/js/privatebin.js b/js/privatebin.js
index f43441c..354d003 100644
--- a/js/privatebin.js
+++ b/js/privatebin.js
@@ -1544,6 +1544,9 @@ jQuery.PrivateBin = (function($, RawDeflate) {
} else if (typeof args === 'string') {
// convert string to array if needed
args = [args];
+ } else if (args instanceof Error) {
+ // extract message into array if needed
+ args = [args.message];
}
// pass to custom handler if defined
diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php
index a53cdc7..5125524 100644
--- a/tpl/bootstrap.php
+++ b/tpl/bootstrap.php
@@ -72,7 +72,7 @@ if ($MARKDOWN):
endif;
?>
-
+
diff --git a/tpl/page.php b/tpl/page.php
index 84aefd3..a5e5926 100644
--- a/tpl/page.php
+++ b/tpl/page.php
@@ -50,7 +50,7 @@ if ($MARKDOWN):
endif;
?>
-
+