Skip to content

Commit 3b35e1f

Browse files
committed
Exit early if a theme file format is invalid
1 parent 981ec73 commit 3b35e1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/theme.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ impl Theme {
6868
Ok(t) => return Ok(t),
6969
Err(e) => {
7070
err = Error::from(e);
71+
break;
7172
}
7273
},
7374
Err(e) => err = Error::from(e),

0 commit comments

Comments
 (0)