Conversation
|
Can you include an example of the erroneous |
|
Anything that is not a list should trigger that. I had the riak_kv tuple with add_path inside it, but no global list. Sent from my iPhone
|
|
Thanks @macintux, that's sufficient to know. |
Erlang config files are designed to contain one term, a list, that
contains two-tuples of {Application, Env}. An advanced.config can
possibly contain multiple terms and still parse via file:consult/1, but
cuttlefish does not handle this case. Instead of crashing with
case_clause, we now inform the user that the file is erroneous.
|
@macintux Please see if this suits your needs. |
|
I am unenthused by the error messages, but it's definitely better than before. The problem now is that the error message doesn't provide anything useful in some cases, and the E.g., removing the trailing period from the list: Running So definitely better, but would be nice if it were better yet. |
|
@macintux Do you have specific ways the error messages could be improved in this case? I'd like this to land in 2.0.2. |
|
I'm fine with this being something we periodically improve (and thus can merge now). |
|
This should have targeted 2.0. Closing. |
Related to #59
If
advanced.configcontains a simple tuple without an enclosing array, the error looks like this: