diff options
author | Eric <[email protected]> | 2012-09-10 08:23:12 -0500 |
---|---|---|
committer | Eric <[email protected]> | 2012-09-10 08:23:12 -0500 |
commit | 4505d4f1ed6a7ba0d390f262bdeee9c35bc5d7a4 (patch) | |
tree | 06cb1eb4a99ce4a500a8646c503222d8aa4d2d77 /src/relcool.erl | |
parent | 9aab4d7a16fba5dfcf4d60b58a05cc765eca3335 (diff) | |
download | relx-4505d4f1ed6a7ba0d390f262bdeee9c35bc5d7a4.tar.gz relx-4505d4f1ed6a7ba0d390f262bdeee9c35bc5d7a4.tar.bz2 relx-4505d4f1ed6a7ba0d390f262bdeee9c35bc5d7a4.zip |
add config validation support to the system
Diffstat (limited to 'src/relcool.erl')
-rw-r--r-- | src/relcool.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/relcool.erl b/src/relcool.erl index f8a9bbd..2284d29 100644 --- a/src/relcool.erl +++ b/src/relcool.erl @@ -31,7 +31,6 @@ %%============================================================================ -spec main([string()]) -> ok. main(Args) -> - io:format("~p~n", [Args]), OptSpecList = opt_spec_list(), case rcl_cmd_args:args2state(getopt:parse(OptSpecList, Args)) of {ok, {State, _Target}} -> @@ -90,6 +89,8 @@ to_error({error,{invalid_option_arg, Arg}}) -> {log_level, LogLevel} -> io_lib:format("Invalid Library Directory argument -n ~p~n", [LogLevel]) end; +to_error({error, {invalid_config_file, Config}}) -> + io_lib:format("Invalid configuration file specified: ~s", [Config]); to_error({error, {failed_to_parse, Spec}}) -> io_lib:format("Unable to parse spec ~s", [Spec]); to_error({error, {unable_to_create_output_dir, OutputDir}}) -> |