Skip to content

Commit 4756571

Browse files
osupdate: debugging
1 parent 1429443 commit 4756571

File tree

1 file changed

+4
-3
lines changed
  • internal_filesystem/builtin/apps/com.micropythonos.osupdate/assets

1 file changed

+4
-3
lines changed

internal_filesystem/builtin/apps/com.micropythonos.osupdate/assets/osupdate.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ async def perform_update(self):
379379
self._handle_update_exception(e)
380380

381381
def _handle_update_error(self, result):
382-
"""Handle update error result - extracted for DRY."""
382+
print(f"Handle update error: {result}")
383383
error_msg = result.get('error', 'Unknown error')
384384
bytes_written = result.get('bytes_written', 0)
385385
total_size = result.get('total_size', 0)
@@ -401,7 +401,7 @@ def _handle_update_error(self, result):
401401
self.install_button.remove_state(lv.STATE.DISABLED) # allow retry
402402

403403
def _handle_update_exception(self, e):
404-
"""Handle update exception - extracted for DRY."""
404+
print(f"Handle update exception: {e}")
405405
msg = self._get_user_friendly_error(e) + "\n\nPress 'Update OS' to retry."
406406
self.set_state(UpdateState.ERROR)
407407
self.status_label.set_text(msg)
@@ -666,7 +666,8 @@ async def chunk_handler(chunk):
666666

667667
except Exception as e:
668668
error_msg = str(e)
669-
669+
print(f"error_msg: {error_msg}")
670+
670671
# Check if cancelled by user
671672
if "cancelled" in error_msg.lower():
672673
result['error'] = error_msg

0 commit comments

Comments
 (0)