Skip to content

Commit

Permalink
Handle not being able to load authority file
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-ancell committed Dec 1, 2023
1 parent 86ef561 commit a8f6a1e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/src/x11_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,11 @@ class X11Client {
}
X11AuthorityFile? authorityFile;
if (authorityPath != null) {
authorityFile = await X11AuthorityFileLoader().load(authorityPath);
try {
authorityFile = await X11AuthorityFileLoader().load(authorityPath);
} on Exception catch (e) {
print('Failed to load authority: $e');
}
}
var authorizationName = '';
var authorizationData = <int>[];
Expand Down

0 comments on commit a8f6a1e

Please sign in to comment.