From 7e595c685b40670ee91c3c3723b7788115a13165 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Fri, 17 Apr 2020 18:15:53 -0300 Subject: improve warning message --- src/luarocks/cmd.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/luarocks/cmd.lua b/src/luarocks/cmd.lua index 6c0363a2..be863cfa 100644 --- a/src/luarocks/cmd.lua +++ b/src/luarocks/cmd.lua @@ -566,8 +566,9 @@ function cmd.run_command(description, commands, external_namespace, ...) if not lua_found and args.command ~= "config" and args.command ~= "help" then util.warning(tried .. "\nModules may not install with the correct configurations. " .. - "You may want to specify the path prefix to your build " .. - "of Lua " .. cfg.lua_version .. " using --lua-dir") + "You may want to configure the path prefix to your build " .. + "of Lua " .. cfg.lua_version .. " using\n\n" .. + " luarocks config --local lua_dir \n") end cfg.lua_found = lua_found -- cgit v1.2.3-55-g6feb