File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/local_auth/local_auth/example/lib Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ class _MyAppState extends State<MyApp> {
9797 _isAuthenticating = false ;
9898 if (e.code != LocalAuthExceptionCode .userCanceled &&
9999 e.code != LocalAuthExceptionCode .systemCanceled) {
100- _authorized = 'Error - ${e .code .name }: ${e .description }' ;
100+ _authorized = 'Error - ${e .code .name }${ e . description != null ? ' : ${e .description }' : '' }' ;
101101 }
102102 });
103103 return ;
@@ -141,7 +141,7 @@ class _MyAppState extends State<MyApp> {
141141 _isAuthenticating = false ;
142142 if (e.code != LocalAuthExceptionCode .userCanceled &&
143143 e.code != LocalAuthExceptionCode .systemCanceled) {
144- _authorized = 'Error - ${e .code .name }: ${e .description }' ;
144+ _authorized = 'Error - ${e .code .name }${ e . description != null ? ' : ${e .description }' : '' }' ;
145145 }
146146 });
147147 return ;
You can’t perform that action at this time.
0 commit comments