Skip to content

Commit

Permalink
Correctly signal error for incorrect MAKE-PATHNAME TYPE
Browse files Browse the repository at this point in the history
  • Loading branch information
easye committed Apr 3, 2024
1 parent a1320c5 commit b5cb959
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/org/armedbear/lisp/Pathname.java
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,11 @@ public String getNamestring() {
} else if (getType() == Keyword.WILD) {
sb.append('*');
} else {
Debug.assertTrue(false);
type_error("TYPE is not a string, :UNSPECIFIC, NIL, or :WILD.",
getType(),
list(Symbol.OR,
Symbol.STRING, Keyword.UNSPECIFIC, NIL, Keyword.WILD));

}
}

Expand Down

0 comments on commit b5cb959

Please sign in to comment.