summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/container/settingobject.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/ranger/container/settingobject.py b/ranger/container/settingobject.py
index e6acf35b..70eac7b5 100644
--- a/ranger/container/settingobject.py
+++ b/ranger/container/settingobject.py
@@ -108,11 +108,13 @@ class SettingObject(SignalDispatcher, FileManagerAware):
 		typ = ALLOWED_SETTINGS[name]
 		if isfunction(typ):
 			assert typ(value), \
-				"The option `" + name + "' has an incorrect type!"
+				"Warning: The option `" + name + "' has an incorrect type!"
 		else:
 			assert isinstance(value, typ), \
-				"The option `" + name + "' has an incorrect type!"\
-				" Got " + str(type(value)) + ", expected " + str(typ) + "!"
+				"Warning: The option `" + name + "' has an incorrect type!"\
+				" Got " + str(type(value)) + ", expected " + str(typ) + "!" +\
+				" Please check if your commands.py is up to date." if not \
+				self.fm.ui.is_set_up else ""
 		return True
 
 	__getitem__ = __getattr__