diff options
-rw-r--r-- | src/luarocks/fs.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/luarocks/fs.lua b/src/luarocks/fs.lua index 999572b8..911ac474 100644 --- a/src/luarocks/fs.lua +++ b/src/luarocks/fs.lua | |||
@@ -61,6 +61,10 @@ do | |||
61 | return | 61 | return |
62 | end | 62 | end |
63 | 63 | ||
64 | if not cfg.each_platform then | ||
65 | error("cfg is not initalized, please run cfg.init() first") | ||
66 | end | ||
67 | |||
64 | -- Load platform-specific functions | 68 | -- Load platform-specific functions |
65 | local loaded_platform = nil | 69 | local loaded_platform = nil |
66 | for platform in cfg.each_platform() do | 70 | for platform in cfg.each_platform() do |