File tree 2 files changed +9
-7
lines changed
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -321,7 +321,8 @@ class CodelesslyAuthManager extends AuthManager {
321
321
_authStreamController.add (_authData);
322
322
await cacheManager.delete (authCacheKey);
323
323
log ('Failed to authenticate token.' );
324
- return ;
324
+
325
+ throw CodelesslyException .notAuthenticated ();
325
326
}
326
327
} on CodelesslyException {
327
328
rethrow ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ class CodelesslyErrorScreen extends StatelessWidget {
17
17
18
18
@override
19
19
Widget build (BuildContext context) {
20
- if (! publishSource.isPreview) return const SizedBox .shrink ();
20
+ // if (!publishSource.isPreview) return const SizedBox.shrink();
21
21
22
22
final String message;
23
23
String ? title;
@@ -110,11 +110,12 @@ class CodelesslyErrorScreen extends StatelessWidget {
110
110
style: Theme .of (context).textTheme.bodyMedium,
111
111
),
112
112
if (exception case CodelesslyException ex)
113
- Text (
114
- ex.originalException.toString (),
115
- textAlign: TextAlign .left,
116
- style: Theme .of (context).textTheme.bodyMedium,
117
- ),
113
+ if (ex.originalException != null )
114
+ Text (
115
+ ex.originalException.toString (),
116
+ textAlign: TextAlign .left,
117
+ style: Theme .of (context).textTheme.bodyMedium,
118
+ ),
118
119
],
119
120
),
120
121
),
You can’t perform that action at this time.
0 commit comments