Skip to content

Commit

Permalink
1712795269
Browse files Browse the repository at this point in the history
  • Loading branch information
azimux committed Apr 11, 2024
1 parent 5d279a2 commit 5b0c78b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GIT
remote: foobara
revision: 67b58f4ec4d9519199e33d2a058ffaa1b0e0e0eb
revision: 66a0999371b4cdce3364e0dccb7e0c7090dfc2fd
branch: main
specs:
foobara (0.0.1)
Expand Down
18 changes: 17 additions & 1 deletion src/foobara/remote_imports/import_error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,24 @@ def import_object_from_manifest
end

def build_error
# TODO: do something
base_error_name = manifest_to_import.base_error

base_error = if base_error_name
Foobara.foobara_root_namespace.foobara_lookup_error!(base_error_name)
else
Foobara::Error
end

binding.pry
Foobara::Error.subclass(
context_type_declaration: manifest_to_import.context_type_declaration,
name: manifest_to_import.reference,
symbol: manifest_to_import.symbol.to_sym,
base_error:,
category: manifest_to_import.category.to_sym,
is_fatal: manifest_to_import.is_fatal,
abstract: manifest_to_import.abstract
)
end
end
end
Expand Down

0 comments on commit 5b0c78b

Please sign in to comment.