AP_Scripting: tell the user where their scripts directory is on failure
This commit is contained in:
parent
e95e996cc4
commit
19249a13fd
@ -132,7 +132,7 @@ void lua_scripts::load_all_scripts_in_dir(lua_State *L, const char *dirname) {
|
||||
|
||||
DIR *d = AP::FS().opendir(dirname);
|
||||
if (d == nullptr) {
|
||||
gcs().send_text(MAV_SEVERITY_INFO, "Lua: Could not find a scripts directory");
|
||||
gcs().send_text(MAV_SEVERITY_INFO, "Lua: open directory (%s) failed", dirname);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user