Skip to content

Commit

Permalink
Making the variable lookup error messages better
Browse files Browse the repository at this point in the history
  • Loading branch information
fitzgen committed Feb 27, 2010
1 parent 4c9860d commit 6d444eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scheme.adb
Expand Up @@ -384,6 +384,7 @@ procedure Scheme is
end loop;
This_Env := Enclosing_Environment(This_Env);
end loop;
Stderr("Unbound variable '" & To_String(Var.all.Data.Symbol) & "'");
raise Constraint_Error;
end;

Expand All @@ -407,7 +408,7 @@ procedure Scheme is
end loop;
This_Env := Enclosing_Environment(This_Env);
end loop;
Stderr("Unbound variable '" & To_String(Var.all.Data.Symbol) & "'");
Stderr("Unbound variable '" & To_String(Var.all.Data.Symbol) & "' must be defined before set.");
raise Constraint_Error;
end;

Expand Down

0 comments on commit 6d444eb

Please sign in to comment.