Skip to content

Commit

Permalink
Print correct path when unable to find GDExtension library
Browse files Browse the repository at this point in the history
  • Loading branch information
enetheru authored and akien-mga committed Mar 25, 2024
1 parent 7c6e85d commit 5f89b15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/extension/gdextension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ Error GDExtension::open_library(const String &p_path, const String &p_entry_symb
bool library_copied = false;
if (Engine::get_singleton()->is_editor_hint()) {
if (!FileAccess::exists(abs_path)) {
ERR_PRINT("GDExtension library not found: " + library_path);
ERR_PRINT("GDExtension library not found: " + abs_path);
return ERR_FILE_NOT_FOUND;
}

Expand All @@ -750,7 +750,7 @@ Error GDExtension::open_library(const String &p_path, const String &p_entry_symb

Error copy_err = DirAccess::copy_absolute(abs_path, copy_path);
if (copy_err) {
ERR_PRINT("Error copying GDExtension library: " + library_path);
ERR_PRINT("Error copying GDExtension library: " + abs_path);
return ERR_CANT_CREATE;
}
FileAccess::set_hidden_attribute(copy_path, true);
Expand Down

0 comments on commit 5f89b15

Please sign in to comment.