./lib/dolt/sinatra/actions.rb in dolt-0.22.0 vs ./lib/dolt/sinatra/actions.rb in dolt-0.23.0

- old
+ new

@@ -27,9 +27,12 @@ response["Location"] = url body "" end def render_error(error, repo, ref) + if error.class.to_s == "Rugged::ReferenceError" && ref == "HEAD" + return body(renderer.render("empty", { :repository => repo, :ref => ref })) + end template = error.class.to_s == "Rugged::IndexerError" ? :"404" : :"500" add_headers(response) body(renderer.render(template, { :error => error, :repository_slug => repo,