Explorar el Código

Limit long error messages

Andrew Kane hace 8 años
padre
commit
3733be109b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/views/blazer/queries/run.html.erb

+ 1 - 1
app/views/blazer/queries/run.html.erb

@@ -1,5 +1,5 @@
 <% if @error %>
-  <div class="alert alert-danger"><%= @error %></div>
+  <div class="alert alert-danger"><%= @error.first(200) %></div>
 <% elsif !@success %>
   <% if @only_chart %>
     <p class="text-muted">Select variables</p>