summaryrefslogtreecommitdiff
path: root/providers/enchant_aspell.c
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2021-11-12 14:22:10 +0000
committerReuben Thomas <rrt@sc3d.org>2021-11-16 12:24:42 +0000
commitf0ebe6f96bfc1a5e798acbe54ef68efc2ce6be21 (patch)
tree4f68e4604ca9f5e51f8aa83d17b0b96e5f289678 /providers/enchant_aspell.c
parent53416be5789613c8a14f26eaffe87e6aa70a35c0 (diff)
downloadenchant-f0ebe6f96bfc1a5e798acbe54ef68efc2ce6be21.tar.gz
Aspell provider: set provider error when request_dict fails
Also remove some checks for mandatory provider methods in test code.
Diffstat (limited to 'providers/enchant_aspell.c')
-rw-r--r--providers/enchant_aspell.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/providers/enchant_aspell.c b/providers/enchant_aspell.c
index d79891c..3bef4ef 100644
--- a/providers/enchant_aspell.c
+++ b/providers/enchant_aspell.c
@@ -143,6 +143,7 @@ aspell_provider_request_dict (EnchantProvider * me _GL_UNUSED_PARAMETER, const c
if (aspell_error_number (spell_error) != 0)
{
+ enchant_provider_set_error (me, aspell_error_message (spell_error));
delete_aspell_can_have_error(spell_error);
return NULL;
}