Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

Commit

Permalink
fix: managing errors better
Browse files Browse the repository at this point in the history
  • Loading branch information
jagalindo committed Aug 31, 2023
1 parent 840b71e commit 7fdd9f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="uvlparser",
version="1.0.0",
version="1.1.0.dev0",
description="This module provides a get_tree function to obtain an ANTLR parse-tree from a UVL-defined feature model",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down
4 changes: 2 additions & 2 deletions uvlparser/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ def syntaxError(self, recognizer, offendingSymbol, line, column, msg, e):
return
else:
# Otherwise, print the error (or handle it in another way)
print(f"Line {line}:{column} - {msg}")
raise ParsingException("The UVL has sintactic problems that prevents reading it")
print(f"The UVL has the following error that prevents reading it :Line {line}:{column} - {msg}")
raise ParsingException("")


def get_tree(argv):
Expand Down

0 comments on commit 7fdd9f5

Please sign in to comment.