We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f6d269 commit 97ec422Copy full SHA for 97ec422
.changes/cli-icon-non-0-exit.md
@@ -0,0 +1,6 @@
1
+---
2
+"tauri-cli": "patch:bug"
3
+"@tauri-apps/cli": "patch:bug"
4
5
+
6
+Exit `tauri icon` with non-zero code when it fails.
tooling/cli/src/icon.rs
@@ -138,11 +138,11 @@ pub fn command(options: Options) -> Result<()> {
138
))
139
}
140
} else {
141
- panic!("Error loading image");
+ anyhow::bail!("Error loading image");
142
};
143
144
if source.height() != source.width() {
145
- panic!("Source image must be square");
+ anyhow::bail!("Source image must be square");
146
147
148
if png_icon_sizes.is_empty() {
0 commit comments