X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/57d3b3af55a0bb37eb964aa75a9f1549df9a771c..4ae7bb4178150fffe3857782f9e4edf158215eed:/app/controllers/traces_controller.rb diff --git a/app/controllers/traces_controller.rb b/app/controllers/traces_controller.rb index 8994d8a2e..2e3e6b8e6 100644 --- a/app/controllers/traces_controller.rb +++ b/app/controllers/traces_controller.rb @@ -117,6 +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" unless @trace.valid? logger.debug ex end