diff options
author | Andrey Pampukha <[email protected]> | 2010-03-15 15:26:02 +0100 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2010-06-09 16:19:13 +0200 |
commit | a9c315929d96c7d0d0e5e79f8fc0ba0c7f17e94d (patch) | |
tree | 4aee70a5dfd2f379e6b11b3f61ae920f0b7cdb33 /lib/common_test/src/ct_run.erl | |
parent | 9ad66edc389b04141443bc5339c9f34dfeac59f0 (diff) | |
download | otp-a9c315929d96c7d0d0e5e79f8fc0ba0c7f17e94d.tar.gz otp-a9c315929d96c7d0d0e5e79f8fc0ba0c7f17e94d.tar.bz2 otp-a9c315929d96c7d0d0e5e79f8fc0ba0c7f17e94d.zip |
Changed return value tags for config file handling
Return value tags modified and various documentation updates made (work in progress).
Diffstat (limited to 'lib/common_test/src/ct_run.erl')
-rw-r--r-- | lib/common_test/src/ct_run.erl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/common_test/src/ct_run.erl b/lib/common_test/src/ct_run.erl index 0e7da60821..92c2334a80 100644 --- a/lib/common_test/src/ct_run.erl +++ b/lib/common_test/src/ct_run.erl @@ -245,11 +245,11 @@ check_and_install_configfiles(Configs, LogDir, EvHandlers) -> false-> install([{config,Configs}, {event_handler,EvHandlers}], LogDir); - {value, {nok, {nofile, File}}} -> + {value, {error, {nofile, File}}} -> {error,{cant_read_config_file,File}}; - {value, {nok, {wrong_config, Message}}}-> + {value, {error, {wrong_config, Message}}}-> {error,{wrong_config, Message}}; - {value, {nok, {callback, File}}} -> + {value, {error, {callback, File}}} -> {error,{cant_load_callback_module,File}} end. @@ -702,9 +702,9 @@ check_config_file(Callback, File)-> ?abs(File); {ok, {config, _}}-> File; - {nok, {wrong_config, Message}}-> + {error, {wrong_config, Message}}-> exit({wrong_config, {Callback, Message}}); - {nok, {nofile, File}}-> + {error, {nofile, File}}-> exit({no_such_file, ?abs(File)}) end. |