about summary refs log tree commit diff stats
path: root/src/js
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-10-01 21:40:26 +0200
committerbptato <nincsnevem662@gmail.com>2024-10-01 21:41:55 +0200
commit6e6d9e2ab875ffdb9dcaf1a2ed689a1390f72848 (patch)
tree54a5ff65513d6595341930d1638ecfc54df86c11 /src/js
parentef1a514a4d5a338831bf8828bb6f0e2f8addda2a (diff)
downloadchawan-6e6d9e2ab875ffdb9dcaf1a2ed689a1390f72848.tar.gz
twtstr: misc refactorings
Diffstat (limited to 'src/js')
-rw-r--r--src/js/base64.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/base64.nim b/src/js/base64.nim
index c44fb5f6..f9137fb3 100644
--- a/src/js/base64.nim
+++ b/src/js/base64.nim
@@ -12,7 +12,7 @@ proc atob*(data: string): DOMResult[NarrowString] =
   # Note: the actual atob implementation (atob0) is in twtstr.
   let r = atob0(data)
   if r.isNone:
-    return errDOMException(r.error, "InvalidCharacterError")
+    return errDOMException($r.error, "InvalidCharacterError")
   return ok(NarrowString(r.get))
 
 const AMap = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"