We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b78367 commit 8cc793dCopy full SHA for 8cc793d
petab/petablint.py
@@ -160,17 +160,18 @@ def main():
160
try:
161
validate(args.yaml_file_name)
162
except SchemaValidationError as e:
163
+ path = ""
164
if e.absolute_path:
165
# construct a path to the error location inside the YAML file
166
path = list(e.absolute_path)
167
path = (
- path[0] + "".join(f"[{str(p)}]" for p in path[1:]) + ": "
168
+ f" at {path[0]}"
169
+ + "".join(f"[{str(p)}]" for p in path[1:])
170
+ + ": "
171
)
- else:
- path = ""
172
logger.error(
- "Provided YAML file does not adhere to PEtab schema: "
173
- f"{path}{e.args[0]}"
+ "Provided YAML file does not adhere to the PEtab schema"
174
+ f"{path}: {e.args[0]}"
175
176
sys.exit(1)
177
except ValueError as e:
0 commit comments