Skip to content

Commit

Permalink
chore: improve error message 19
Browse files Browse the repository at this point in the history
  • Loading branch information
mweststrate committed May 21, 2020
1 parent 497d1a0 commit a9a3af0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ const errors = {
18(plugin: string) {
return `The plugin for '${plugin}' has not been loaded into Immer. To enable the plugin, import and call \`enable${plugin}()\` when initializing your application.`
},
19: "plugin not loaded",
19(plugin: string) {
return "plugin not loaded: " + plugin
},
20: "Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available"
} as const

Expand Down

0 comments on commit a9a3af0

Please sign in to comment.