diff --git a/js/privatebin.js b/js/privatebin.js
index f43441c4..354d0030 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 a53cdc78..51255245 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 84aefd30..a5e5926d 100644
--- a/tpl/page.php
+++ b/tpl/page.php
@@ -50,7 +50,7 @@ if ($MARKDOWN):
endif;
?>
-
+