Skip to content

Commit fdef076

Browse files
committed
Prep for 0.7.3 release.
Updated `WatchSystem` to use debug formatting for errors to ensure that full error chains are reported when running `trunk watch` & `trunk serve`.
1 parent 8f9bdbe commit fdef076

File tree

5 files changed

+42
-38
lines changed

5 files changed

+42
-38
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ changelog
33
This changelog follows the patterns described here: https://keepachangelog.com/en/1.0.0/.
44

55
## Unreleased
6+
7+
## 0.7.3
68
### fixed
79
- Closed [#82](https://github.com/thedodd/trunk/issues/82): Remove the hardcoded Unix (`/`) path separator from the code and convert Windows NT UNC path to its simplified alternative before passing to `cargo metadata` command to prevent issues with Rust package collisions and writing `index.html` file.
10+
- Updated the `WatchSystem` to use `{:?}` debug formatting for errors to ensure that full error chains are reported. This impacts the `watch` & `serve` subcommands. The `build` command was already behaving as needed.
811

912
## 0.7.2
1013
### fixed

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "trunk"
3-
version = "0.7.2"
3+
version = "0.7.3"
44
edition = "2018"
55
description = "Build, bundle & ship your Rust WASM application to the web."
66
license = "MIT/Apache-2.0"

src/pipelines/html.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ impl HtmlPipeline {
111111
let output_html = target_html.html(); // TODO: prettify this output.
112112
fs::write(self.cfg.dist.join("index.html"), output_html.as_bytes())
113113
.await
114-
.context("error writing finalized HTML output")?; // TODO: show also error details (in a verbose mode?)
114+
.context("error writing finalized HTML output")?;
115115
Ok(())
116116
}
117117

src/watch.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ impl WatchSystem {
6060
/// Run a build.
6161
pub async fn build(&mut self) {
6262
if let Err(err) = self.build.build().await {
63-
self.progress.println(format!("{}", err));
63+
// NOTE WELL: we use debug formatting here to ensure the error chain is displayed.
64+
self.progress.println(format!("{:?}", err));
6465
}
6566
}
6667

0 commit comments

Comments
 (0)