Software /
code /
prosody
Comparison
core/storagemanager.lua @ 5502:c773aa4467f1
storagemanager: Fix traceback in logging when store type is nil, and store is unsupported.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Mon, 22 Apr 2013 11:54:15 -0400 |
parent | 5155:a207d4bff5a4 |
child | 5776:bd0ff8ae98a8 |
comparison
equal
deleted
inserted
replaced
5500:eeea0eb2602a | 5502:c773aa4467f1 |
---|---|
84 local driver, driver_name = get_driver(host, store); | 84 local driver, driver_name = get_driver(host, store); |
85 local ret, err = driver:open(store, typ); | 85 local ret, err = driver:open(store, typ); |
86 if not ret then | 86 if not ret then |
87 if err == "unsupported-store" then | 87 if err == "unsupported-store" then |
88 log("debug", "Storage driver %s does not support store %s (%s), falling back to null driver", | 88 log("debug", "Storage driver %s does not support store %s (%s), falling back to null driver", |
89 driver_name, store, typ); | 89 driver_name, store, typ or "<nil>"); |
90 ret = null_storage_driver; | 90 ret = null_storage_driver; |
91 err = nil; | 91 err = nil; |
92 end | 92 end |
93 end | 93 end |
94 return ret, err; | 94 return ret, err; |