Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5657839

Browse files
authored
Merge pull request #3075 from AndreasMatthias/fix_doc_update
fix: incorrect error message for `--doc-update`
2 parents f88626a + 9f1b9ed commit 5657839

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

‎changelog.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Unreleased
44
<!-- Add all new changes here. They will be moved under a version at release -->
55
* `FIX` incorrect argument skip pattern for `--check_out_path=`, which incorrectly skips the next argument
6+
* `FIX` incorrect error message for `--doc_update`.
67
* `FIX` reimplement section `luals.config` in file doc.json
78
* `FIX` incorrect file names in file doc.json
89
* `FIX` remove extra `./` path prefix in the check report when using `--check=.`

‎script/cli/doc/init.lua‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ local doc = {}
1616
local function findDocJson()
1717
local doc_json_path
1818
if type(DOC_UPDATE) == 'string' then
19-
doc_json_path = fs.absolute(fs.path(DOC_UPDATE)) .. '/doc.json'
19+
doc_json_path = fs.canonical(fs.path(DOC_UPDATE)) .. '/doc.json'
2020
else
2121
doc_json_path = fs.current_path() .. '/doc.json'
2222
end
@@ -46,7 +46,7 @@ local function getPathDocUpdate()
4646
local doc_json_dir = doc_json_path:string():gsub('/doc.json', '')
4747
return doc_json_dir, doc_path
4848
else
49-
error(string.format('Error: Cannot update "%s".', doc_json_path..'/doc.json'))
49+
error(string.format('Error: Cannot update "%s".', doc_json_path))
5050
end
5151
end
5252

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /