From 3ed5fb98d2a24058aee91f96c2a779f15ac695dd Mon Sep 17 00:00:00 2001 From: larry Date: Sat, 8 Jun 2019 21:06:23 +0200 Subject: specs_gen script fix error message The warning message was using input file, not output file: Example: could not write file '../src/alarm_handler.erl': no such file or directory Which is the input file, the correct message is: could not write file '../specs/alarm_handler.specs': no such file or directory --- lib/erl_docgen/priv/bin/specs_gen.escript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/erl_docgen') diff --git a/lib/erl_docgen/priv/bin/specs_gen.escript b/lib/erl_docgen/priv/bin/specs_gen.escript index 859f3c21f5..116240530d 100644 --- a/lib/erl_docgen/priv/bin/specs_gen.escript +++ b/lib/erl_docgen/priv/bin/specs_gen.escript @@ -131,7 +131,7 @@ write_text(Text, File, Dir) -> ok; {error, R} -> R1 = file:format_error(R), - io:format("could not write file '~s': ~s\n", [File, R1]), + io:format("could not write file '~s': ~s\n", [OutFile, R1]), halt(2) end. -- cgit v1.2.3