Skip to content

Commit

Permalink
refactor: improve exportProfile exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
andrekir committed Sep 23, 2023
1 parent 055fce4 commit 2192410
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/java/com/geeksville/mesh/model/UIState.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 2192410

Please sign in to comment.