Changeset

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
parents 5500:eeea0eb2602a
children 5506:69ee5b10738d
files core/storagemanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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