From ca0081e14b96eb6436ad349be2f2148520c16f38 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Tue, 17 Feb 2015 01:05:32 +0100 Subject: Improved semantics of the return value of the autocomplete function: Empty return value explicitly means that the file does not exist at all. --- src/core/resource/ResourceRequest.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core/resource/ResourceRequest.cpp') diff --git a/src/core/resource/ResourceRequest.cpp b/src/core/resource/ResourceRequest.cpp index 79e1ff7..ed94b2d 100644 --- a/src/core/resource/ResourceRequest.cpp +++ b/src/core/resource/ResourceRequest.cpp @@ -206,6 +206,9 @@ bool ResourceRequest::deduce(Registry ®istry, Logger &logger) ok = false; } } else { + // Autocompletion already tries to determine the file path, so + // if an empty list is returned, this means that the resource + // is explicitly not found logger.error(std::string("Resource \"") + path + std::string("\" not found")); ok = false; -- cgit v1.2.3