aboutsummaryrefslogtreecommitdiffstats
path: root/lib/erl_docgen/priv
diff options
context:
space:
mode:
authorlarry <[email protected]>2019-06-08 21:06:23 +0200
committerlarry <munin>2019-06-08 23:14:05 +0200
commit3ed5fb98d2a24058aee91f96c2a779f15ac695dd (patch)
tree52915d74dddbd31575709b4ae393bcd72b99ecf8 /lib/erl_docgen/priv
parent639ca4526b3f378bd1635fbc56f134d9c01e624b (diff)
downloadotp-3ed5fb98d2a24058aee91f96c2a779f15ac695dd.tar.gz
otp-3ed5fb98d2a24058aee91f96c2a779f15ac695dd.tar.bz2
otp-3ed5fb98d2a24058aee91f96c2a779f15ac695dd.zip
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
Diffstat (limited to 'lib/erl_docgen/priv')
-rw-r--r--lib/erl_docgen/priv/bin/specs_gen.escript2
1 files changed, 1 insertions, 1 deletions
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.