aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/float.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-09-22 19:57:00 -0700
committerAlex Yatskov <alex@foosoft.net>2017-09-22 19:57:00 -0700
commit7a6e2925bdf94cf93c858323587d24e156d8b7ac (patch)
treefcae21183e1f9b7408bde9e751f59002fbc24fb4 /ext/fg/js/float.js
parent8ba8397170c99e1d4416277e26d91ebb4b8cfed1 (diff)
improved error reporting
Diffstat (limited to 'ext/fg/js/float.js')
-rw-r--r--ext/fg/js/float.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fg/js/float.js b/ext/fg/js/float.js
index 22374f8b..ff50483d 100644
--- a/ext/fg/js/float.js
+++ b/ext/fg/js/float.js
@@ -27,7 +27,7 @@ class DisplayFloat extends Display {
if (window.yomichan_orphaned) {
this.onOrphaned();
} else {
- window.alert(`Error: ${error}`);
+ window.alert(`Error: ${error.toString ? error.toString() : error}`);
}
}