smartmetals / phoenix_datatables

Library to implement server-side API for the jQuery DataTables library with Elixir and Phoenix Framework
MIT License
14 stars 7 forks source link

Unsortable Columns Raise on FunctionClauseError #16

Open jeremyjh opened 6 years ago

jeremyjh commented 6 years ago

This should be a more explicit exception type:

** (exit) an exception was raised:                                                                                                                                                              
    ** (FunctionClauseError) no function clause matching in anonymous fn/2 in PhoenixDatatables.Query.do_sorts/2                                                                                
        (phoenix_datatables) lib/phoenix_datatables/query.ex:51: anonymous fn({:error, "stats.date_all_stock_exhausted is not a sortable column."},