Browse Source

Improve exception

Alexander Zaytsev 6 năm trước cách đây
mục cha
commit
510c092ad1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      jsfuck.js

+ 1 - 1
jsfuck.js

@@ -279,7 +279,7 @@
         if (replacement){
           output.push(replacement);
         } else {
-          throw new Error('Found unmapped character');
+          throw new Error('Found unmapped character: ' + c);
         }
       }
     });