Skip to content
This repository was archived by the owner on Nov 11, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
include:
- os: ubuntu-latest
- os: ubuntu-22.04
fileName: "sw_linux_x64"
file: "sw"
- os: windows-latest
Expand Down
5 changes: 3 additions & 2 deletions src/core/config.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use serde::{Deserialize, Serialize};
use serde_json;
use std::fs;
use std::{fs, process::exit};

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