Skip to content

Commit

Permalink
add useful errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jupyterkat committed Apr 7, 2024
1 parent 9b3a846 commit 3aecf18
Show file tree
Hide file tree
Showing 7 changed files with 70 additions and 270 deletions.
230 changes: 15 additions & 215 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,7 @@ petgraph = "0.6.4"
bitflags = "2.5.0"
nom = "7.1.3"
mimalloc = { version = "0.1.39", default-features = false }
color-eyre = "0.6.3"

tracing = "0.1.40"
tracing-subscriber = "0.3.18"
tracing-error = "0.2.0"
simple-eyre = "0.3.1"

[dependencies.tinyvec]
version = "1.6.0"
Expand Down
23 changes: 4 additions & 19 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,10 @@ use gas::constants::{ReactionReturn, GAS_MIN_MOLES, MINIMUM_MOLES_DELTA_TO_MOVE}
#[global_allocator]
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;

//#[byondapi::init]
//pub fn init_eyre() {
// use tracing_error::ErrorLayer;
// use tracing_subscriber::fmt;
// use tracing_subscriber::prelude::*;
//
// let fmt_layer = fmt::layer().with_target(false).compact();
//
// tracing_subscriber::registry()
// .with(fmt_layer)
// .with(ErrorLayer::default())
// .init();
//
// color_eyre::config::HookBuilder::default()
// .capture_span_trace_by_default(true)
// .display_location_section(true)
// .install()
// .unwrap();
//}
#[byondapi::init]
pub fn init_eyre() {
simple_eyre::install().unwrap();
}

/// Args: (ms). Runs callbacks until time limit is reached. If time limit is omitted, runs all callbacks.
#[byondapi::bind("/proc/process_atmos_callbacks")]
Expand Down
Loading

0 comments on commit 3aecf18

Please sign in to comment.