Skip to content

Commit

Permalink
Update error logger on preset loading
Browse files Browse the repository at this point in the history
  • Loading branch information
cxnt committed Aug 1, 2024
1 parent e3832e8 commit 1e61bd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui/tabs/presets.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ def load_json():
dtl_json = json.load(f)
apply_json(dtl_json)
except Exception as e:
load_notification_error.description = f'Error loading preset from "{path}". {str(e)}'
logger.error(f"Error loading preset from {path}: {str(e)}")
load_notification_error.set(f'Error loading preset from "{path}". {str(e)}', status="error")
load_notification_select.set_value("error")
preset_loaded = False
finally:
Expand Down

0 comments on commit 1e61bd9

Please sign in to comment.