mirror of https://github.com/vitalif/openscad
Fix duplicated output of DEPRECATED marker.
parent
e3441b50a1
commit
10bee498e6
|
@ -22,7 +22,7 @@ std::string lookup_file(const std::string &filename,
|
|||
|
||||
if (!fs::exists(absfile) && fs::exists(absfile_fallback)) {
|
||||
resultfile = absfile_fallback.string();
|
||||
PRINT_DEPRECATION("DEPRECATED: Imported file (%s) found in document root instead of relative to the importing module. This behavior is deprecated", filename);
|
||||
PRINT_DEPRECATION("Imported file (%s) found in document root instead of relative to the importing module. This behavior is deprecated", filename);
|
||||
}
|
||||
else {
|
||||
resultfile = absfile.string();
|
||||
|
|
|
@ -116,7 +116,7 @@ const AbstractModule *ModuleContext::findLocalModule(const std::string &name) co
|
|||
}
|
||||
std::string replacement = Builtins::instance()->isDeprecated(name);
|
||||
if (!replacement.empty()) {
|
||||
PRINT_DEPRECATION("DEPRECATED: The %s() module will be removed in future releases. Use %s instead.", name % replacement);
|
||||
PRINT_DEPRECATION("The %s() module will be removed in future releases. Use %s instead.", name % replacement);
|
||||
}
|
||||
return m;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue