]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/trace_controller.rb
Potlatch 1.3
[rails.git] / app / controllers / trace_controller.rb
index 84026e8cd4d420f6f437778df8924db6c6179777..2eaacbf34fc2296161116511b6e6e763f97b6282 100644 (file)
@@ -117,11 +117,11 @@ class TraceController < ApplicationController
        (@trace.public? or @trace.user == @user)
       @title = t 'trace.view.title', :name => @trace.name
     else
-      flash[:notice] = t 'trace.view.trace_not_found'
+      flash[:error] = t 'trace.view.trace_not_found'
       redirect_to :controller => 'trace', :action => 'list'
     end
   rescue ActiveRecord::RecordNotFound
-    flash[:notice] = t 'trace.view.trace_not_found'
+    flash[:error] = t 'trace.view.trace_not_found'
     redirect_to :controller => 'trace', :action => 'list'
   end