mirror of https://github.com/zer0bin-dev/zer0bin
forgor
This commit is contained in:
parent
2495eb83d2
commit
c53caba8b6
|
@ -20,7 +20,7 @@ pub struct DatabasesConfig {
|
|||
}
|
||||
|
||||
pub fn load(path: PathBuf) -> Config {
|
||||
let file = File::open(path).expect("Failed to load config.json");
|
||||
let file = File::open(path).expect("Failed to load config");
|
||||
let config = serde_json::from_reader(file).unwrap();
|
||||
|
||||
config
|
||||
|
|
|
@ -67,7 +67,7 @@ function newPaste() {
|
|||
}
|
||||
|
||||
function addMessage(message) {
|
||||
let msg = $(`<li>${message || "Unknown error occurred.."}</li>`);
|
||||
let msg = $(`<li>${message}</li>`);
|
||||
messages.prepend(msg);
|
||||
|
||||
setTimeout(function () {
|
||||
|
|
Loading…
Reference in New Issue