Skip to content

Commit

Permalink
deft build: better error when no library specified
Browse files Browse the repository at this point in the history
  • Loading branch information
cgay committed Jan 9, 2025
1 parent 6dae732 commit dd4c8c2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions sources/commands/build.dylan
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,13 @@ define method execute-subcommand
if (empty?(library-names))
library-names
:= list(ws/workspace-default-library-name(ws)
| error("No libraries found in workspace and no"
" default libraries configured."));
| if (all?)
error("No libraries found in workspace and no"
" default libraries configured.");
else
error("Please specify a library to build, use --all,"
" or configure a default library.");
end);
end;
for (name in library-names)
// Let the shell locate dylan-compiler...
Expand Down

0 comments on commit dd4c8c2

Please sign in to comment.