summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2009-07-07 12:23:16 +0000
committerMika Havela <mika.havela@gmail.com>2009-07-07 12:23:16 +0000
commit4000a354bdabce4cfaaac2c672a689d9bab8b910 (patch)
tree98875ab46f98293e7f9738931be71b79bdc2406f
parent2ce8959da8f8a53d95bcee0197b42e1c642cb630 (diff)
downloadacf-rrdtool-4000a354bdabce4cfaaac2c672a689d9bab8b910.tar.bz2
acf-rrdtool-4000a354bdabce4cfaaac2c672a689d9bab8b910.tar.xz
Display error message when a rrd DB has been created on other architecture
-rw-r--r--rrdtool-model.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/rrdtool-model.lua b/rrdtool-model.lua
index 3be5a25..fa47e02 100644
--- a/rrdtool-model.lua
+++ b/rrdtool-model.lua
@@ -134,7 +134,7 @@ end
function rrd_info(self, path, userid)
local success, errtxt
if (validfilename(path)) then
- local f = io.popen( "/usr/bin/rrdtool info ".. tostring(path) )
+ local f = io.popen( "/usr/bin/rrdtool info ".. tostring(path) .. " 2>&1" )
success = f:read("*a") or ""
f:close()
end