Skip to content

Commit 3367167

Browse files
authored
Release 103 (#1165)
Includes bump to kcl 44
1 parent ee1764b commit 3367167

File tree

5 files changed

+14
-17
lines changed

5 files changed

+14
-17
lines changed

Cargo.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "zoo"
3-
version = "0.2.102"
3+
version = "0.2.103"
44
edition = "2021"
55
build = "build.rs"
66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -21,9 +21,9 @@ git_rev = "0.1.0"
2121
heck = "0.5.0"
2222
http = "1"
2323
itertools = "0.12.1"
24-
kcl-lib = { version = "0.2.41", features = ["disable-println"] }
24+
kcl-lib = { version = "0.2.44", features = ["disable-println"] }
2525
#kcl-lib = { path = "../modeling-app/src/wasm-lib/kcl" }
26-
kcl-test-server = "0.1.40"
26+
kcl-test-server = "0.1.44"
2727
kittycad = { version = "0.3.30", features = ["clap", "tabled", "requests", "retry"] }
2828
kittycad-modeling-cmds = { version = "0.2.100", features = ["websocket", "convert_client_crate", "tabled"] }
2929
log = "0.4.26"

src/cmd_kcl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ impl crate::cmd::Command for CmdKclExport {
125125
let session_data = ectx
126126
.run_with_ui_outputs(&program, &mut state)
127127
.await
128-
.map_err(|err| kcl_error_fmt::into_miette(&code, err))?
128+
.map_err(kcl_error_fmt::into_miette)?
129129
.1;
130130

131131
// Zoom on the object.

src/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ impl Context<'_> {
151151
let session_data = ctx
152152
.run_with_ui_outputs(&program, &mut state)
153153
.await
154-
.map_err(|err| kcl_error_fmt::into_miette(code, err))?
154+
.map_err(kcl_error_fmt::into_miette)?
155155
.1;
156156

157157
// Zoom on the object.

src/kcl_error_fmt.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
// A lot of the below is based upon https://github.com/AlexanderThaller/format_serde_error/tree/main
2-
// which is licensed under the MIT license. Thank you!
3-
4-
pub(crate) fn into_miette(input: &str, error: kcl_lib::KclErrorWithOutputs) -> anyhow::Error {
5-
let report = error.clone().into_miette_report_with_outputs(input).unwrap();
1+
pub(crate) fn into_miette(error: kcl_lib::KclErrorWithOutputs) -> anyhow::Error {
2+
let report = error.clone().into_miette_report_with_outputs().unwrap();
63
let report = miette::Report::new(report);
74
anyhow::anyhow!("{:?}", report)
85
}

0 commit comments

Comments
 (0)