diff --git a/console/templates/console-base.html b/console/templates/console-base.html
index 10ef4a3..08aaf27 100644
--- a/console/templates/console-base.html
+++ b/console/templates/console-base.html
@@ -121,6 +121,9 @@
function log_info(msg) {
log_message(msg,'info');
}
+ {% if console_error %}
+ log_error('{{ console_error|escapejs }}');
+ {% endif %}
{% block foot %}{% endblock %}
diff --git a/console/views.py b/console/views.py
index 4651c87..6828e1c 100644
--- a/console/views.py
+++ b/console/views.py
@@ -16,6 +16,7 @@ def console(request):
:param request:
:return:
"""
+ console_error = None
if request.method == 'GET':
token = request.GET.get('token', '')
@@ -49,7 +50,8 @@ def console(request):
elif console_type == 'spice':
response = render(request, 'console-spice.html', locals())
else:
- response = "Console type %s no support" % console_type
+ console_error = "Console type: %s no support" % console_type
+ response = render(request, 'console-vnc.html', locals())
response.set_cookie('token', token)
return response