Skip to content

Commit

Permalink
fix mensaje de error
Browse files Browse the repository at this point in the history
  • Loading branch information
Juancete committed Oct 27, 2023
1 parent 0cf1e8b commit a104cc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interpreter/runtimeModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ export class Evaluation {

const target = node.instantiated.target ?? raise(new Error(`Could not resolve reference to instantiated module ${node.instantiated.name}`))

if (!target.is(Class)) raise(new Error(`${node.instantiated.name} is not a class, you cannot generate instances of a ${node.instantiated.kind}`))
if (!target.is(Class)) raise(new Error(`${node.instantiated.name} is not a class, you cannot generate instances of a ${node.instantiated.target?.kind}`))

if (target.isAbstract) raise(new Error(`${node.instantiated.name} is an abstract class, you cannot generate instances`))

Expand Down

0 comments on commit a104cc7

Please sign in to comment.