[gtksourceview/wip/chergert/gsv-gtk4: 161/259] fileloader: always return a GError with FALSE
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/gsv-gtk4: 161/259] fileloader: always return a GError with FALSE
- Date: Mon, 21 Sep 2020 23:27:46 +0000 (UTC)
commit 165808a976dbbd9d73073cfce565cc6ebec5d399
Author: Christian Hergert <chergert redhat com>
Date: Tue Apr 7 14:29:08 2020 -0700
fileloader: always return a GError with FALSE
gtksourceview/gtksourcefileloader.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gtksourceview/gtksourcefileloader.c b/gtksourceview/gtksourcefileloader.c
index ead44011..ff02ab09 100644
--- a/gtksourceview/gtksourcefileloader.c
+++ b/gtksourceview/gtksourcefileloader.c
@@ -1122,7 +1122,10 @@ gtk_source_file_loader_load_async (GtkSourceFileLoader *loader,
loader->file == NULL ||
(loader->location == NULL && loader->input_stream_property == NULL))
{
- g_task_return_boolean (loader->task, FALSE);
+ g_task_return_new_error (loader->task,
+ G_IO_ERROR,
+ G_IO_ERROR_INVALID_ARGUMENT,
+ "Invalid argument");
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]