mirror of https://github.com/godotengine/godot
Print Godot version when an extension is found to be incompatible
This commit is contained in:
parent
215acd52e8
commit
ab36db2cfa
|
|
@ -315,7 +315,9 @@ Error GDExtensionLibraryLoader::parse_gdextension_file(const String &p_path) {
|
|||
compatible = GODOT_VERSION_PATCH >= compatibility_minimum[2];
|
||||
}
|
||||
if (!compatible) {
|
||||
ERR_PRINT(vformat("GDExtension only compatible with Godot version %d.%d.%d or later: %s", compatibility_minimum[0], compatibility_minimum[1], compatibility_minimum[2], p_path));
|
||||
ERR_PRINT(vformat("GDExtension only compatible with Godot version %d.%d.%d or later: %s, but your Godot version is %d.%d.%d",
|
||||
compatibility_minimum[0], compatibility_minimum[1], compatibility_minimum[2], p_path,
|
||||
GODOT_VERSION_MAJOR, GODOT_VERSION_MINOR, GODOT_VERSION_PATCH));
|
||||
return ERR_INVALID_DATA;
|
||||
}
|
||||
|
||||
|
|
@ -347,7 +349,8 @@ Error GDExtensionLibraryLoader::parse_gdextension_file(const String &p_path) {
|
|||
#endif
|
||||
|
||||
if (!compatible) {
|
||||
ERR_PRINT(vformat("GDExtension only compatible with Godot version %s or earlier: %s", compat_string, p_path));
|
||||
ERR_PRINT(vformat("GDExtension only compatible with Godot version %s or earlier: %s, but your Godot version is %d.%d.%d",
|
||||
compat_string, p_path, GODOT_VERSION_MAJOR, GODOT_VERSION_MINOR, GODOT_VERSION_PATCH));
|
||||
return ERR_INVALID_DATA;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue