diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2019-04-01 21:22:15 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2019-04-03 10:44:51 -0300 |
commit | d2423f481ed3699ce9ebf4013e346510350c8a0e (patch) | |
tree | d8d4ff3c130ef930b3967095d9ac3596cdd4bf74 /src | |
parent | f5eef8f276b86654a21cb80f5b8e28028abcd5fa (diff) | |
download | luarocks-d2423f481ed3699ce9ebf4013e346510350c8a0e.tar.gz luarocks-d2423f481ed3699ce9ebf4013e346510350c8a0e.tar.bz2 luarocks-d2423f481ed3699ce9ebf4013e346510350c8a0e.zip |
util: more informative message: "Lua 5.x interpreter not found"
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/util.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/luarocks/util.lua b/src/luarocks/util.lua index 99e9cc74..dae9307a 100644 --- a/src/luarocks/util.lua +++ b/src/luarocks/util.lua | |||
@@ -636,7 +636,10 @@ do | |||
636 | end | 636 | end |
637 | end | 637 | end |
638 | end | 638 | end |
639 | return nil, "Lua interpreter not found at " .. prefix .. "\n" .. | 639 | local interp = luaver |
640 | and ("Lua " .. luaver .. " interpreter") | ||
641 | or "Lua interpreter" | ||
642 | return nil, interp .. " not found at " .. prefix .. "\n" .. | ||
640 | "Tried:\t" .. table.concat(tried, "\n\t") | 643 | "Tried:\t" .. table.concat(tried, "\n\t") |
641 | end | 644 | end |
642 | end | 645 | end |