AP_Scripting: tell the user where their scripts directory is on failure

This commit is contained in:
Peter Barker 2020-03-09 10:05:44 +11:00 committed by Randy Mackay
parent e95e996cc4
commit 19249a13fd

View File

@ -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;
}