don't mask encoding errors when decoding a string #6289
diff --git a/Misc/NEWS b/Misc/NEWS
index 686e707..44f30e0 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,8 @@
 Core and Builtins
 -----------------
 
+- Issue #6289: Encoding errors from compile() were being masked.
+
 - When no module is given in a relative import, the module field of the
   ImportFrom AST node is now None instead of an empty string.