Skip to content

Commit

Permalink
Fix kavita exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
l7ssha committed Nov 16, 2024
1 parent de01bc0 commit 339955c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/commands/kavita.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ Future<AuthenticatedKavitaClient> getKavitaClient(KavitaUserConfig? config, Chat
.fetchGetUserConfigWithFallback(userId: context.user.id, parentId: getParentIdFromContext(context));

if (config == null) {
throw Exception("Invalid jellyfin config or user not logged in.");
throw Exception("Invalid kavita config or user not logged in."); // Todo: handle properly
}

return Injector.appInstance.get<KavitaModule>().createAuthenticatedClient(config);
}

Expand Down

0 comments on commit 339955c

Please sign in to comment.