mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor: improve exportProfile exception handling
This commit is contained in:
parent
055fce4279
commit
219241076a
1 changed files with 3 additions and 1 deletions
|
|
@ -723,8 +723,10 @@ class UIViewModel @Inject constructor(
|
|||
message.writeTo(outputStream)
|
||||
}
|
||||
}
|
||||
} catch (ex: FileNotFoundException) {
|
||||
} catch (ex: Exception) {
|
||||
val error = "${ex.javaClass.simpleName}: ${ex.message}"
|
||||
errormsg("Can't write file error: ${ex.message}")
|
||||
setResponseStateError(error)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue