mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2025-04-04 10:53:40 +02:00
better error throwing
This commit is contained in:
parent
10fb3714c7
commit
ecc37273ca
@ -131,7 +131,7 @@ export async function slice(target, name, mesh, settings, printers, quality, mat
|
|||||||
steps = 2;
|
steps = 2;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
steps = 1;
|
throw new Error('unknown target');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -197,6 +197,7 @@ export async function slice(target, name, mesh, settings, printers, quality, mat
|
|||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
throw new Error('unknown target');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user