mirror of
https://codeberg.org/icewind/nextcloud-config-parser.git
synced 2026-06-03 08:34:13 +02:00
fancy error formatting
This commit is contained in:
parent
d9d0c397ee
commit
87dd4c570b
4 changed files with 35 additions and 8 deletions
|
|
@ -1,8 +1,12 @@
|
|||
use nextcloud_config_parser::{parse, Error};
|
||||
use nextcloud_config_parser::parse;
|
||||
|
||||
fn main() -> Result<(), Error> {
|
||||
let config = parse("tests/configs/basic.php")?;
|
||||
fn main() {
|
||||
let config = match parse("tests/configs/basic.php") {
|
||||
Ok(config) => config,
|
||||
Err(err) => {
|
||||
eprintln!("{}", err);
|
||||
return;
|
||||
}
|
||||
};
|
||||
dbg!(config);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue