1 parent b2c1cf4 commit 13a64c7Copy full SHA for 13a64c7
1 file changed
src/qdl.js
@@ -2,7 +2,6 @@ import { Firehose } from "./firehose"
2
import { GPT } from "./gpt"
3
import { Sahara } from "./sahara";
4
import * as Sparse from "./sparse";
5
-import { concatUint8Array, containsBytes } from "./utils";
6
import { createLogger } from "./logger";
7
8
const logger = createLogger("qdl");
@@ -170,8 +169,8 @@ export class qdlDevice {
170
169
if (name === "mbr" || name === "gpt") continue;
171
const part = primaryGpt.locatePartition(name);
172
if (!part) {
173
- logger.warn(`Partition ${name} not found in GPT`);
174
- continue;
+ logger.error(`Partition ${name} not found in GPT`);
+ return false;
175
}
176
protectedRanges.push({ name, start: part.start, end: part.end });
177
0 commit comments