X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/c299bd42efe234931f8941691b0e888f5c374cc3..a04b19a9aede097d2d7ea0d5cb10cef69312bbd3:/app/controllers/traces_controller.rb diff --git a/app/controllers/traces_controller.rb b/app/controllers/traces_controller.rb index a50f00829..9dd82f8bb 100644 --- a/app/controllers/traces_controller.rb +++ b/app/controllers/traces_controller.rb @@ -117,7 +117,7 @@ class TracesController < ApplicationController do_create(params[:trace][:gpx_file], params[:trace][:tagstring], params[:trace][:description], params[:trace][:visibility]) rescue StandardError => ex - render :action => "new" if !@trace.valid? + render :action => "new" and return unless @trace.valid? logger.debug ex end