mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-21 12:35:52 +03:00
Add convenience method to present and log errors in lock view controller
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
81566eec09
commit
05e5793f06
1 changed files with 5 additions and 0 deletions
|
@ -38,4 +38,9 @@ class LockViewController: NSViewController {
|
|||
@IBAction func closeAction(_ sender: Any) {
|
||||
actionViewController.extensionContext.completeRequest()
|
||||
}
|
||||
|
||||
private func presentError(_ error: String) {
|
||||
Logger.lockViewController.error("Error: \(error, privacy: .public)")
|
||||
descriptionLabel.stringValue = "Error: \(error)"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue