Skip to content

Commit

Permalink
Refactor: Try Catch
Browse files Browse the repository at this point in the history
요청 부분 Try Catch로 묶어서 전달
  • Loading branch information
happycastle114 committed Nov 5, 2024
1 parent 485d4cc commit 46b9733
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/utils/remoteConfigController.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'package:firebase_crashlytics/firebase_crashlytics.dart';
import 'package:firebase_remote_config/firebase_remote_config.dart';
import 'package:package_info/package_info.dart';

Expand Down Expand Up @@ -51,8 +52,11 @@ class RemoteConfigController {
"version": value.version,
"ios_version": value.version,
});

await remoteConfig.fetchAndActivate();
try {
await remoteConfig.fetchAndActivate();
} catch (e) {
FirebaseCrashlytics.instance.log(e.toString());
}

this.backUrl = remoteConfig.getString("back_url");
this.frontUrl = remoteConfig.getString("front_url");
Expand Down

0 comments on commit 46b9733

Please sign in to comment.