Diff

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
line wrap: on
line diff
--- a/core/storagemanager.lua	Fri Apr 19 16:14:06 2013 +0200
+++ b/core/storagemanager.lua	Mon Apr 22 11:54:15 2013 -0400
@@ -86,7 +86,7 @@
 	if not ret then
 		if err == "unsupported-store" then
 			log("debug", "Storage driver %s does not support store %s (%s), falling back to null driver",
-				driver_name, store, typ);
+				driver_name, store, typ or "<nil>");
 			ret = null_storage_driver;
 			err = nil;
 		end