mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-25 03:33:36 +03:00
feat(build): print error context (#3644)
This commit is contained in:
parent
b3515014ef
commit
49546c5269
5
.changes/tauri-build-default-anyhow-fmt.md
Normal file
5
.changes/tauri-build-default-anyhow-fmt.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri-build": patch
|
||||
---
|
||||
|
||||
Print error context on the `build` panic.
|
@ -143,7 +143,7 @@ impl Attributes {
|
||||
/// This is typically desirable when running inside a build script; see [`try_build`] for no panics.
|
||||
pub fn build() {
|
||||
if let Err(error) = try_build(Attributes::default()) {
|
||||
panic!("error found during tauri-build: {}", error);
|
||||
panic!("error found during tauri-build: {:#?}", error);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -9,6 +9,6 @@ fn main() {
|
||||
Attributes::new()
|
||||
.windows_attributes(WindowsAttributes::new().window_icon_path("../../.icons/icon.ico")),
|
||||
) {
|
||||
panic!("error found during tauri-build: {}", error);
|
||||
panic!("error found during tauri-build: {:#?}", error);
|
||||
}
|
||||
}
|
||||
|
@ -9,6 +9,6 @@ fn main() {
|
||||
Attributes::new()
|
||||
.windows_attributes(WindowsAttributes::new().window_icon_path("../../.icons/icon.ico")),
|
||||
) {
|
||||
panic!("error found during tauri-build: {}", error);
|
||||
panic!("error found during tauri-build: {:#?}", error);
|
||||
}
|
||||
}
|
||||
|
@ -9,6 +9,6 @@ fn main() {
|
||||
Attributes::new()
|
||||
.windows_attributes(WindowsAttributes::new().window_icon_path("../../.icons/icon.ico")),
|
||||
) {
|
||||
panic!("error found during tauri-build: {}", error);
|
||||
panic!("error found during tauri-build: {:#?}", error);
|
||||
}
|
||||
}
|
||||
|
@ -9,6 +9,6 @@ fn main() {
|
||||
Attributes::new()
|
||||
.windows_attributes(WindowsAttributes::new().window_icon_path("../../.icons/icon.ico")),
|
||||
) {
|
||||
panic!("error found during tauri-build: {}", error);
|
||||
panic!("error found during tauri-build: {:#?}", error);
|
||||
}
|
||||
}
|
||||
|
@ -9,6 +9,6 @@ fn main() {
|
||||
Attributes::new()
|
||||
.windows_attributes(WindowsAttributes::new().window_icon_path("../../.icons/icon.ico")),
|
||||
) {
|
||||
panic!("error found during tauri-build: {}", error);
|
||||
panic!("error found during tauri-build: {:#?}", error);
|
||||
}
|
||||
}
|
||||
|
@ -9,6 +9,6 @@ fn main() {
|
||||
Attributes::new()
|
||||
.windows_attributes(WindowsAttributes::new().window_icon_path("../../.icons/icon.ico")),
|
||||
) {
|
||||
panic!("error found during tauri-build: {}", error);
|
||||
panic!("error found during tauri-build: {:#?}", error);
|
||||
}
|
||||
}
|
||||
|
@ -9,6 +9,6 @@ fn main() {
|
||||
Attributes::new()
|
||||
.windows_attributes(WindowsAttributes::new().window_icon_path("../../.icons/icon.ico")),
|
||||
) {
|
||||
panic!("error found during tauri-build: {}", error);
|
||||
panic!("error found during tauri-build: {:#?}", error);
|
||||
}
|
||||
}
|
||||
|
@ -9,6 +9,6 @@ fn main() {
|
||||
Attributes::new()
|
||||
.windows_attributes(WindowsAttributes::new().window_icon_path("../../.icons/icon.ico")),
|
||||
) {
|
||||
panic!("error found during tauri-build: {}", error);
|
||||
panic!("error found during tauri-build: {:#?}", error);
|
||||
}
|
||||
}
|
||||
|
@ -9,6 +9,6 @@ fn main() {
|
||||
Attributes::new()
|
||||
.windows_attributes(WindowsAttributes::new().window_icon_path("../../.icons/icon.ico")),
|
||||
) {
|
||||
panic!("error found during tauri-build: {}", error);
|
||||
panic!("error found during tauri-build: {:#?}", error);
|
||||
}
|
||||
}
|
||||
|
@ -9,6 +9,6 @@ fn main() {
|
||||
Attributes::new()
|
||||
.windows_attributes(WindowsAttributes::new().window_icon_path("../../.icons/icon.ico")),
|
||||
) {
|
||||
panic!("error found during tauri-build: {}", error);
|
||||
panic!("error found during tauri-build: {:#?}", error);
|
||||
}
|
||||
}
|
||||
|
@ -9,6 +9,6 @@ fn main() {
|
||||
Attributes::new()
|
||||
.windows_attributes(WindowsAttributes::new().window_icon_path("../../.icons/icon.ico")),
|
||||
) {
|
||||
panic!("error found during tauri-build: {}", error);
|
||||
panic!("error found during tauri-build: {:#?}", error);
|
||||
}
|
||||
}
|
||||
|
@ -9,6 +9,6 @@ fn main() {
|
||||
Attributes::new()
|
||||
.windows_attributes(WindowsAttributes::new().window_icon_path("../../.icons/icon.ico")),
|
||||
) {
|
||||
panic!("error found during tauri-build: {}", error);
|
||||
panic!("error found during tauri-build: {:#?}", error);
|
||||
}
|
||||
}
|
||||
|
@ -8,6 +8,6 @@ fn main() {
|
||||
if let Err(error) = try_build(Attributes::new().windows_attributes(
|
||||
WindowsAttributes::new().window_icon_path("../../../../../examples/.icons/icon.ico"),
|
||||
)) {
|
||||
panic!("error found during tauri-build: {}", error);
|
||||
panic!("error found during tauri-build: {:#?}", error);
|
||||
}
|
||||
}
|
||||
|
@ -8,6 +8,6 @@ fn main() {
|
||||
if let Err(error) = try_build(Attributes::new().windows_attributes(
|
||||
WindowsAttributes::new().window_icon_path("../../../../../examples/.icons/icon.ico"),
|
||||
)) {
|
||||
panic!("error found during tauri-build: {}", error);
|
||||
panic!("error found during tauri-build: {:#?}", error);
|
||||
}
|
||||
}
|
||||
|
@ -8,6 +8,6 @@ fn main() {
|
||||
if let Err(error) = try_build(Attributes::new().windows_attributes(
|
||||
WindowsAttributes::new().window_icon_path("../../../../../examples/.icons/icon.ico"),
|
||||
)) {
|
||||
panic!("error found during tauri-build: {}", error);
|
||||
panic!("error found during tauri-build: {:#?}", error);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user