Skip to content

fix(core): better error when deserializing plugin config#9631

Merged
amrbashir merged 2 commits intotauri-apps:devfrom
oscartbeaumont:better-error-for-invalid-plugin-config
May 1, 2024
Merged

fix(core): better error when deserializing plugin config#9631
amrbashir merged 2 commits intotauri-apps:devfrom
oscartbeaumont:better-error-for-invalid-plugin-config

Conversation

@oscartbeaumont
Copy link
Member

Before:

Error: PluginInitialization("updater", "invalid type: null, expected struct Config")

After:

Error: PluginInitialization("updater", "Error deserializing 'plugins.updater' within your Tauri configuration: invalid type: null, expected struct Config")

@oscartbeaumont oscartbeaumont requested a review from a team as a code owner May 1, 2024 09:24
@FabianLars
Copy link
Member

Thanks! I love seeing PRs like this one 😍 Just like the other PR, we need a small change file.

@oscartbeaumont
Copy link
Member Author

Fixed, sorry!

@amrbashir amrbashir force-pushed the better-error-for-invalid-plugin-config branch from 7f89f81 to 7cf5f45 Compare May 1, 2024 21:36
@amrbashir amrbashir changed the title fix: better error when deserializing plugin config fix(core): better error when deserializing plugin config May 1, 2024
@amrbashir amrbashir merged commit 7f6d269 into tauri-apps:dev May 1, 2024
@oscartbeaumont oscartbeaumont deleted the better-error-for-invalid-plugin-config branch May 2, 2024 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants