Changed all error returns to OperationErrors

This commit is contained in:
Matt C committed 2018-05-15 18:01:04 +01:00
1 parent b3ee251ee3
commit 2e4f5b7070
25 files changed
+88 -35

No files matched your search

+2 -1
View File
@@ -6,6 +6,7 @@
import Operation from "../Operation";
import Utils from "../Utils";
import OperationError from "../errors/OperationError";
/**
* Offset checker operation
@@ -48,7 +49,7 @@ class OffsetChecker extends Operation {
chr;
if (!samples || samples.length < 2) {
return "Not enough samples, perhaps you need to modify the sample delimiter or add more data?";
throw new OperationError("Not enough samples, perhaps you need to modify the sample delimiter or add more data?");
}
// Initialise output strings