better error throwing

This commit is contained in:
casperlamboo 2018-01-15 13:47:16 +01:00
parent 10fb3714c7
commit ecc37273ca

View File

@ -131,7 +131,7 @@ export async function slice(target, name, mesh, settings, printers, quality, mat
steps = 2;
break;
default:
steps = 1;
throw new Error('unknown target');
break;
}
@ -197,6 +197,7 @@ export async function slice(target, name, mesh, settings, printers, quality, mat
}
default:
throw new Error('unknown target');
break;
}
}