Skip to content

Commit

Permalink
perf: ♻️ When the application fails to start, display the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
viarotel committed Nov 6, 2024
1 parent 11a89a3 commit dbc34d6
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,13 @@ export default {
})
await window.scrcpy.startApp(this.device.id, { title, commands, packageName: value })
.catch((e) => {
console.error('mirror.commands', commands)
console.error('mirror.error', e)
if (e.message) {
this.$message.warning(e.message)
}
})
openFloatControl(toRaw(this.device))
Expand Down

0 comments on commit dbc34d6

Please sign in to comment.