Skip to content

Commit

Permalink
refactor: import custom error to ast_to_ir, raise unparallelizable er…
Browse files Browse the repository at this point in the history
…r in pash_compiler
  • Loading branch information
YUUU23 committed Jun 11, 2024
1 parent 04c9671 commit ad2b687
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions compiler/ast_to_ir.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
from util import *
from parse import from_ast_objects_to_shell

from custom_error import *

## TODO: Separate the ir stuff to the bare minimum and
## try to move this to the shell_ast folder.

Expand Down
2 changes: 1 addition & 1 deletion compiler/pash_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def compile_optimize_output_script(

ret = optimized_ast_or_ir
else:
raise Exception("Script failed to compile!")
raise UnparallelizableError("Script failed to compile!")

return ret

Expand Down

0 comments on commit ad2b687

Please sign in to comment.