refactor: improve exportProfile exception handling

This commit is contained in:
andrekir 2023-09-23 06:55:25 -03:00
parent 055fce4279
commit 219241076a

View file

@ -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)
}
}