Skip to content

Commit

Permalink
Make superseded by warning message more useful.
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock committed Jun 6, 2024
1 parent 698266e commit 996781b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/src/merger/SupersededOpsGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default class SupersededOpsGenerator {
const superseded_path = this.copy_params(superseded_by, path)
const path_entry = _.entries(spec.paths as Document).find(([path, _]) => regex.test(path))
if (path_entry != null) spec.paths[superseded_path] = this.path_object(path_entry[1], operation_keys)
else this.logger.warn(`Path not found: ${superseded_by}`)
else this.logger.warn(`Warning: ${path} is superseded by a path that does not exist: ${superseded_by}`)
}
}

Expand Down

0 comments on commit 996781b

Please sign in to comment.