Skip to content

Commit

Permalink
Update publish button error handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
MasoudAbedi committed Jun 11, 2024
1 parent ca441a0 commit 8efd499
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/controllers/projects_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -612,13 +612,12 @@ def publish_to_csh
format.rdf { render template: 'rdf/show' }
format.json { render json: { error: flash[:error] }, status: :unprocessable_entity }
end
else
else
flash[:error] = "RestClient::ExceptionWithResponse occurred without a response: #{e.message}"
respond_to do |format|
format.html { redirect_to(@project) }
format.rdf { render template: 'rdf/show' }
format.json { render json: { error: flash[:error] }, status: :unprocessable_entity }

end
end

Expand Down

0 comments on commit 8efd499

Please sign in to comment.