mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-27 22:01:35 -05:00
fix(ui): give console and MCP users a hint they can follow on outlined sheets
This commit is contained in:
1 parent
f31cd1c797
commit
e290254a18
3 files changed
+44
-10
No files matched your search
@@ -24,6 +24,9 @@ return NestConsole.Run(args);
|
||||
|
||||
static class NestConsole
|
||||
{
|
||||
private const string OutlinedSheetMessage =
|
||||
"Error: Fill strategies need a rectangular sheet. Use --autonest --engine Irregular.";
|
||||
|
||||
public static int Run(string[] args)
|
||||
{
|
||||
using var cancellation = new CancellationTokenSource();
|
||||
@@ -209,9 +212,9 @@ static class NestConsole
|
||||
ApplyTemplate(plate, options);
|
||||
ApplyOverrides(plate, options);
|
||||
|
||||
if (!options.AutoNest && PlateFillService.Refusal(plate) is { } refusal)
|
||||
if (!options.AutoNest && PlateFillService.Refusal(plate) != null)
|
||||
{
|
||||
Console.Error.WriteLine($"Error: {refusal} Use --autonest.");
|
||||
Console.Error.WriteLine(OutlinedSheetMessage);
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user