mirror of
				https://github.com/KoboldAI/KoboldAI-Client.git
				synced 2025-06-05 21:59:24 +02:00 
			
		
		
		
	Fix typos in error messages
This commit is contained in:
		
							
								
								
									
										14
									
								
								aiserver.py
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								aiserver.py
									
									
									
									
									
								
							| @@ -1142,7 +1142,7 @@ def load_lua_scripts(): | |||||||
|         vars.lua_koboldbridge.obliterate_multiverse() |         vars.lua_koboldbridge.obliterate_multiverse() | ||||||
|         vars.lua_running = False |         vars.lua_running = False | ||||||
|         if(vars.serverstarted): |         if(vars.serverstarted): | ||||||
|             emit('from_server', {'cmd': 'errmsg', 'data': 'Lua script error, please check console.'}, broadcast=True) |             emit('from_server', {'cmd': 'errmsg', 'data': 'Lua script error; please check console.'}, broadcast=True) | ||||||
|             sendUSStatItems() |             sendUSStatItems() | ||||||
|         print("{0}{1}{2}".format(colors.RED, "***LUA ERROR***: ", colors.END), end="", file=sys.stderr) |         print("{0}{1}{2}".format(colors.RED, "***LUA ERROR***: ", colors.END), end="", file=sys.stderr) | ||||||
|         print("{0}{1}{2}".format(colors.RED, str(e).replace("\033", ""), colors.END), file=sys.stderr) |         print("{0}{1}{2}".format(colors.RED, str(e).replace("\033", ""), colors.END), file=sys.stderr) | ||||||
| @@ -1583,7 +1583,7 @@ def execute_inmod(): | |||||||
|     except lupa.LuaError as e: |     except lupa.LuaError as e: | ||||||
|         vars.lua_koboldbridge.obliterate_multiverse() |         vars.lua_koboldbridge.obliterate_multiverse() | ||||||
|         vars.lua_running = False |         vars.lua_running = False | ||||||
|         emit('from_server', {'cmd': 'errmsg', 'data': 'Lua script error, please check console.'}, broadcast=True) |         emit('from_server', {'cmd': 'errmsg', 'data': 'Lua script error; please check console.'}, broadcast=True) | ||||||
|         sendUSStatItems() |         sendUSStatItems() | ||||||
|         print("{0}{1}{2}".format(colors.RED, "***LUA ERROR***: ", colors.END), end="", file=sys.stderr) |         print("{0}{1}{2}".format(colors.RED, "***LUA ERROR***: ", colors.END), end="", file=sys.stderr) | ||||||
|         print("{0}{1}{2}".format(colors.RED, str(e).replace("\033", ""), colors.END), file=sys.stderr) |         print("{0}{1}{2}".format(colors.RED, str(e).replace("\033", ""), colors.END), file=sys.stderr) | ||||||
| @@ -1599,7 +1599,7 @@ def execute_outmod(): | |||||||
|     except lupa.LuaError as e: |     except lupa.LuaError as e: | ||||||
|         vars.lua_koboldbridge.obliterate_multiverse() |         vars.lua_koboldbridge.obliterate_multiverse() | ||||||
|         vars.lua_running = False |         vars.lua_running = False | ||||||
|         emit('from_server', {'cmd': 'errmsg', 'data': 'Lua script error, please check console.'}, broadcast=True) |         emit('from_server', {'cmd': 'errmsg', 'data': 'Lua script error; please check console.'}, broadcast=True) | ||||||
|         sendUSStatItems() |         sendUSStatItems() | ||||||
|         print("{0}{1}{2}".format(colors.RED, "***LUA ERROR***: ", colors.END), end="", file=sys.stderr) |         print("{0}{1}{2}".format(colors.RED, "***LUA ERROR***: ", colors.END), end="", file=sys.stderr) | ||||||
|         print("{0}{1}{2}".format(colors.RED, str(e).replace("\033", ""), colors.END), file=sys.stderr) |         print("{0}{1}{2}".format(colors.RED, str(e).replace("\033", ""), colors.END), file=sys.stderr) | ||||||
| @@ -2716,13 +2716,13 @@ def generate(txt, minimum, maximum, found_entries=None): | |||||||
|         if(issubclass(type(e), lupa.LuaError)): |         if(issubclass(type(e), lupa.LuaError)): | ||||||
|             vars.lua_koboldbridge.obliterate_multiverse() |             vars.lua_koboldbridge.obliterate_multiverse() | ||||||
|             vars.lua_running = False |             vars.lua_running = False | ||||||
|             emit('from_server', {'cmd': 'errmsg', 'data': 'Lua script error, please check console.'}, broadcast=True) |             emit('from_server', {'cmd': 'errmsg', 'data': 'Lua script error; please check console.'}, broadcast=True) | ||||||
|             sendUSStatItems() |             sendUSStatItems() | ||||||
|             print("{0}{1}{2}".format(colors.RED, "***LUA ERROR***: ", colors.END), end="", file=sys.stderr) |             print("{0}{1}{2}".format(colors.RED, "***LUA ERROR***: ", colors.END), end="", file=sys.stderr) | ||||||
|             print("{0}{1}{2}".format(colors.RED, str(e).replace("\033", ""), colors.END), file=sys.stderr) |             print("{0}{1}{2}".format(colors.RED, str(e).replace("\033", ""), colors.END), file=sys.stderr) | ||||||
|             print("{0}{1}{2}".format(colors.YELLOW, "Lua engine stopped; please open 'Userscripts' and press Load to reinitialize scripts.", colors.END), file=sys.stderr) |             print("{0}{1}{2}".format(colors.YELLOW, "Lua engine stopped; please open 'Userscripts' and press Load to reinitialize scripts.", colors.END), file=sys.stderr) | ||||||
|         else: |         else: | ||||||
|             emit('from_server', {'cmd': 'errmsg', 'data': 'Error occured during generator call, please check console.'}, broadcast=True) |             emit('from_server', {'cmd': 'errmsg', 'data': 'Error occurred during generator call; please check console.'}, broadcast=True) | ||||||
|             print("{0}{1}{2}".format(colors.RED, traceback.format_exc().replace("\033", ""), colors.END), file=sys.stderr) |             print("{0}{1}{2}".format(colors.RED, traceback.format_exc().replace("\033", ""), colors.END), file=sys.stderr) | ||||||
|         set_aibusy(0) |         set_aibusy(0) | ||||||
|         return |         return | ||||||
| @@ -2927,13 +2927,13 @@ def tpumtjgenerate(txt, minimum, maximum, found_entries=None): | |||||||
|         if(issubclass(type(e), lupa.LuaError)): |         if(issubclass(type(e), lupa.LuaError)): | ||||||
|             vars.lua_koboldbridge.obliterate_multiverse() |             vars.lua_koboldbridge.obliterate_multiverse() | ||||||
|             vars.lua_running = False |             vars.lua_running = False | ||||||
|             emit('from_server', {'cmd': 'errmsg', 'data': 'Lua script error, please check console.'}, broadcast=True) |             emit('from_server', {'cmd': 'errmsg', 'data': 'Lua script error; please check console.'}, broadcast=True) | ||||||
|             sendUSStatItems() |             sendUSStatItems() | ||||||
|             print("{0}{1}{2}".format(colors.RED, "***LUA ERROR***: ", colors.END), end="", file=sys.stderr) |             print("{0}{1}{2}".format(colors.RED, "***LUA ERROR***: ", colors.END), end="", file=sys.stderr) | ||||||
|             print("{0}{1}{2}".format(colors.RED, str(e).replace("\033", ""), colors.END), file=sys.stderr) |             print("{0}{1}{2}".format(colors.RED, str(e).replace("\033", ""), colors.END), file=sys.stderr) | ||||||
|             print("{0}{1}{2}".format(colors.YELLOW, "Lua engine stopped; please open 'Userscripts' and press Load to reinitialize scripts.", colors.END), file=sys.stderr) |             print("{0}{1}{2}".format(colors.YELLOW, "Lua engine stopped; please open 'Userscripts' and press Load to reinitialize scripts.", colors.END), file=sys.stderr) | ||||||
|         else: |         else: | ||||||
|             emit('from_server', {'cmd': 'errmsg', 'data': 'Error occured during generator call, please check console.'}, broadcast=True) |             emit('from_server', {'cmd': 'errmsg', 'data': 'Error occurred during generator call; please check console.'}, broadcast=True) | ||||||
|             print("{0}{1}{2}".format(colors.RED, traceback.format_exc().replace("\033", ""), colors.END), file=sys.stderr) |             print("{0}{1}{2}".format(colors.RED, traceback.format_exc().replace("\033", ""), colors.END), file=sys.stderr) | ||||||
|         set_aibusy(0) |         set_aibusy(0) | ||||||
|         return |         return | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Gnome Ann
					Gnome Ann