summaryrefslogtreecommitdiffstats
path: root/dnscache-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-09-25 20:30:06 +0000
committerTed Trask <ttrask01@yahoo.com>2008-09-25 20:30:06 +0000
commit5e207acbd97f393e17ccd76df19e8e3a259bb493 (patch)
tree6e2fb7d5e1794e785c4a9f7a04748af2fa3f3879 /dnscache-model.lua
parentf3a9ae6ed3e062499984b1489de8e0cbeaf2966d (diff)
downloadacf-dnscache-5e207acbd97f393e17ccd76df19e8e3a259bb493.tar.bz2
acf-dnscache-5e207acbd97f393e17ccd76df19e8e3a259bb493.tar.xz
Fixed minor bug in dnscache.
git-svn-id: svn://svn.alpinelinux.org/acf/dnscache/trunk@1522 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'dnscache-model.lua')
-rw-r--r--dnscache-model.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/dnscache-model.lua b/dnscache-model.lua
index a756c5d..88b6335 100644
--- a/dnscache-model.lua
+++ b/dnscache-model.lua
@@ -230,6 +230,8 @@ function setDomain(domain)
if success then
fs.write_file(baseurl.."servers/"..domain.value.domain.value,
table.concat(domain.value.iplist.value, "\n") )
+ else
+ domain.errtxt = "Failed to save domain"
end
return domain
end