Skip to content

Commit fce7441

Browse files
committed
exit(1) instead of return
1 parent 92d15bf commit fce7441

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,13 @@ fn main() {
169169
Some(language) => language,
170170
None => {
171171
eprintln!("Error: Could not find any source code in this directory.");
172-
return;
172+
exit(1);
173173
}
174174
};
175175

176176
if !is_git_installed() {
177177
eprintln!("Error: Could not execute git for project information.");
178-
return;
178+
exit(1);
179179
}
180180

181181
let authors = get_authors(3);

0 commit comments

Comments
 (0)