socsvn commit: r257381 - in soc2013/mattbw/backend: jobs query

mattbw at FreeBSD.org mattbw at FreeBSD.org
Sun Sep 15 15:32:32 UTC 2013


Author: mattbw
Date: Sun Sep 15 15:32:31 2013
New Revision: 257381
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=257381

Log:
  Add "no results found" query error reporting too.
  

Modified:
  soc2013/mattbw/backend/jobs/core.c
  soc2013/mattbw/backend/query/match.c

Modified: soc2013/mattbw/backend/jobs/core.c
==============================================================================
--- soc2013/mattbw/backend/jobs/core.c	Sun Sep 15 15:28:49 2013	(r257380)
+++ soc2013/mattbw/backend/jobs/core.c	Sun Sep 15 15:32:31 2013	(r257381)
@@ -147,7 +147,7 @@
 	const char     *detail;
 
 #ifndef __clang__
-	detail = "Detail message not set."
+	detail = "Detail message not set.";
 #endif
 
 	switch (status) {

Modified: soc2013/mattbw/backend/query/match.c
==============================================================================
--- soc2013/mattbw/backend/query/match.c	Sun Sep 15 15:28:49 2013	(r257380)
+++ soc2013/mattbw/backend/query/match.c	Sun Sep 15 15:32:31 2013	(r257381)
@@ -108,6 +108,9 @@
 	if (package == NULL && try_remote) {
 		package = query_match_from(query_find_remote, &spec);
 	}
+	if (package == NULL) {
+		*error_p = QUERY_ERROR_NO_RESULTS;
+	}
 	return package;
 }
 


More information about the svn-soc-all mailing list