Skip to content

Commit

Permalink
fix: catch crypto specific exception
Browse files Browse the repository at this point in the history
  • Loading branch information
mohitpubnub committed Nov 27, 2023
1 parent 315664c commit dc0ea96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pubnub/lib/src/dx/channel/channel_history.dart
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class ChannelHistory {
: await _core.parser.decode(utf8.decode(_core.crypto
.decryptWithKey(_keyset.cipherKey!,
base64.decode(message['message'] as String).toList())));
} on PubNubException catch (e) {
} on CryptoException catch (e) {
error = e;
} on FormatException catch (e) {
error = PubNubException(
Expand Down Expand Up @@ -233,7 +233,7 @@ class PaginatedChannelHistory {
: await _core.parser.decode(utf8.decode(_core.crypto
.encryptWithKey(_keyset.cipherKey!,
base64.decode(message['message'] as String).toList())));
} on PubNubException catch (e) {
} on CryptoException catch (e) {
error = e;
} on FormatException catch (e) {
error = PubNubException(
Expand Down

0 comments on commit dc0ea96

Please sign in to comment.