Skip to content

Commit 1e57527

Browse files
committed
Updated error code from interface when uninitialized.
1 parent 34fcbd5 commit 1e57527

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

addon/NotificationScheduler.gd

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func create_notification_channel(a_notification_channel: NotificationChannel) ->
5050
__result = _plugin_singleton.create_notification_channel(a_notification_channel.get_raw_data())
5151
else:
5252
log_error("%s singleton not initialized!" % PLUGIN_SINGLETON_NAME)
53-
__result == ERR_UNAVAILABLE
53+
__result == ERR_UNCONFIGURED
5454

5555
return __result
5656

@@ -62,7 +62,7 @@ func schedule(a_notification_data: NotificationData) -> Error:
6262
__result = _plugin_singleton.schedule(a_notification_data.get_raw_data())
6363
else:
6464
log_error("%s singleton not initialized!" % PLUGIN_SINGLETON_NAME)
65-
__result == ERR_UNAVAILABLE
65+
__result == ERR_UNCONFIGURED
6666

6767
return __result
6868

@@ -74,7 +74,7 @@ func cancel(a_notification_id: int) -> Error:
7474
__result = _plugin_singleton.cancel(a_notification_id)
7575
else:
7676
log_error("%s singleton not initialized!" % PLUGIN_SINGLETON_NAME)
77-
__result == ERR_UNAVAILABLE
77+
__result == ERR_UNCONFIGURED
7878

7979
return __result
8080

@@ -86,7 +86,7 @@ func set_badge_count(a_count: int) -> Error:
8686
__result = _plugin_singleton.set_badge_count(a_count)
8787
else:
8888
log_error("%s singleton not initialized!" % PLUGIN_SINGLETON_NAME)
89-
__result == ERR_UNAVAILABLE
89+
__result == ERR_UNCONFIGURED
9090

9191
return __result
9292

@@ -118,7 +118,7 @@ func request_post_notifications_permission() -> Error:
118118
__result = _plugin_singleton.request_post_notifications_permission()
119119
else:
120120
log_error("%s singleton not initialized!" % PLUGIN_SINGLETON_NAME)
121-
__result == ERR_UNAVAILABLE
121+
__result == ERR_UNCONFIGURED
122122

123123
return __result
124124

@@ -130,7 +130,7 @@ func open_app_info_settings() -> Error:
130130
__result = _plugin_singleton.open_app_info_settings()
131131
else:
132132
log_error("%s singleton not initialized!" % PLUGIN_SINGLETON_NAME)
133-
__result == ERR_UNAVAILABLE
133+
__result == ERR_UNCONFIGURED
134134

135135
return __result
136136

0 commit comments

Comments
 (0)