mirror of
				https://github.com/livebook-dev/livebook.git
				synced 2025-11-01 00:06:04 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			8 lines
		
	
	
	
		
			293 B
		
	
	
	
		
			Elixir
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
	
		
			293 B
		
	
	
	
		
			Elixir
		
	
	
	
	
	
| defmodule LivebookWeb.ErrorJSON do
 | |
|   # By default, Phoenix returns the status message from
 | |
|   # the template name. For example, "404.json" becomes
 | |
|   # "Not Found".
 | |
|   def render(template, _assigns) do
 | |
|     %{errors: %{detail: Phoenix.Controller.status_message_from_template(template)}}
 | |
|   end
 | |
| end
 |