summaryrefslogtreecommitdiff
path: root/src/core/resource/ResourceRequest.cpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-17 01:05:32 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-17 01:05:32 +0100
commitca0081e14b96eb6436ad349be2f2148520c16f38 (patch)
tree8b93e3a41637b5b124e4ad4570a51bb4519847e2 /src/core/resource/ResourceRequest.cpp
parent8eb2bed0115b5f6884fe12ecda80974aa6c21761 (diff)
Improved semantics of the return value of the autocomplete function: Empty return value explicitly means that the file does not exist at all.
Diffstat (limited to 'src/core/resource/ResourceRequest.cpp')
-rw-r--r--src/core/resource/ResourceRequest.cpp3
1 files changed, 3 insertions, 0 deletions
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 &registry, 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;