refactor: improve alert error context and copy action
This commit is contained in:
@@ -185,7 +185,7 @@ public struct NewProfileView: View {
|
||||
viewModel.fileURL = urls[0]
|
||||
}
|
||||
} catch {
|
||||
viewModel.alert = AlertState(error: error)
|
||||
viewModel.alert = AlertState(action: "read imported profile file", error: error)
|
||||
return
|
||||
}
|
||||
}
|
||||
@@ -213,7 +213,7 @@ public struct NewProfileView: View {
|
||||
viewModel.fileURL = urls[0]
|
||||
}
|
||||
} catch {
|
||||
viewModel.alert = AlertState(error: error)
|
||||
viewModel.alert = AlertState(action: "read imported profile file", error: error)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user