mirror of
https://github.com/djcb/mu.git
synced 2024-06-30 08:01:07 +02:00
* mu-query.cc: use mu_util_g_set_error
This commit is contained in:
parent
ece0bc5bae
commit
607fdd01f5
|
@ -164,7 +164,7 @@ public:
|
||||||
_qparser.add_valuerangeprocessor (&_date_range_processor);
|
_qparser.add_valuerangeprocessor (&_date_range_processor);
|
||||||
_qparser.add_valuerangeprocessor (&_size_range_processor);
|
_qparser.add_valuerangeprocessor (&_size_range_processor);
|
||||||
|
|
||||||
mu_msg_field_foreach ((MuMsgFieldForEachFunc)add_prefix,
|
mu_msg_field_foreach ((MuMsgFieldForeachFunc)add_prefix,
|
||||||
&_qparser);
|
&_qparser);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -212,8 +212,7 @@ get_query (MuQuery *mqx, const char* searchexpr, GError **err)
|
||||||
return query;
|
return query;
|
||||||
|
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
/* some error occured */
|
mu_util_g_set_error (err,MU_ERROR_XAPIAN_QUERY,
|
||||||
g_set_error (err, MU_ERROR_DOMAIN, MU_ERROR_XAPIAN_QUERY,
|
|
||||||
"parse error in query");
|
"parse error in query");
|
||||||
g_free (preprocessed);
|
g_free (preprocessed);
|
||||||
throw;
|
throw;
|
||||||
|
@ -347,7 +346,6 @@ mu_query_run (MuQuery *self, const char* searchexpr, gboolean threads,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
char*
|
char*
|
||||||
mu_query_as_string (MuQuery *self, const char *searchexpr, GError **err)
|
mu_query_as_string (MuQuery *self, const char *searchexpr, GError **err)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user