From dd4c8c216df2c6aea90f7e39e324d4cd6f42efc9 Mon Sep 17 00:00:00 2001 From: Carl Gay Date: Thu, 2 Jan 2025 17:40:08 -0500 Subject: [PATCH] deft build: better error when no library specified --- sources/commands/build.dylan | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sources/commands/build.dylan b/sources/commands/build.dylan index 5f40521..11dd87c 100644 --- a/sources/commands/build.dylan +++ b/sources/commands/build.dylan @@ -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...