mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-22 05:37:55 +01: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…
Reference in New Issue
Block a user