py/objstr: Fix error reporting for unexpected end of modulo format str.
diff --git a/py/objstr.c b/py/objstr.c
index 98360d9..f91e173 100644
--- a/py/objstr.c
+++ b/py/objstr.c
@@ -1299,7 +1299,7 @@
             continue;
         }
         if (++str >= top) {
-            break;
+            goto incomplete_format;
         }
         if (*str == '%') {
             vstr_add_byte(&vstr, '%');
@@ -1369,6 +1369,7 @@
         }
 
         if (str >= top) {
+incomplete_format:
             if (MICROPY_ERROR_REPORTING == MICROPY_ERROR_REPORTING_TERSE) {
                 terse_str_format_value_error();
             } else {