Skip to content
This repository was archived by the owner on Nov 11, 2025. It is now read-only.

Commit 8933625

Browse files
authored
Merge pull request #1 from StelStelox/main
Изменил версию ubuntu и сделал выход через exit процесс
2 parents 1df637c + 77ea1ff commit 8933625

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
include:
14-
- os: ubuntu-latest
14+
- os: ubuntu-22.04
1515
fileName: "sw_linux_x64"
1616
file: "sw"
1717
- os: windows-latest

src/core/config.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use serde::{Deserialize, Serialize};
22
use serde_json;
3-
use std::fs;
3+
use std::{fs, process::exit};
44

55
pub fn get_config() -> Settings {
66
let config = {
@@ -21,7 +21,8 @@ pub fn get_config() -> Settings {
2121
serde_json::to_string_pretty(&config).unwrap(),
2222
)
2323
.expect("Can't write to file");
24-
panic!("Config not found, a default config was created. \nPlease configure it.");
24+
println!("Config not found, a default config was created. \nPlease configure it.");
25+
exit(1);
2526
}
2627
};
2728
serde_json::from_str::<Settings>(&s).unwrap()

0 commit comments

Comments
 (0)