Skip to content

Commit 24a6e1d

Browse files
committed
Adding example error handling
1 parent e93c809 commit 24a6e1d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

frontend/src/lib/components/left-bar/Settings.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@
162162
// Only return valid info if the mod is enabled
163163
if(!$lockfileMods[modReference]) {
164164
//How to enforce error handling?
165+
console.error('Tried to copy a disabled mod');
165166
return {
166167
friendlyName: '',
167168
modReference: '',

0 commit comments

Comments
 (0)