Skip to content

Commit 274bc20

Browse files
committed
Return empty string when length is 0 in dapInfo
1 parent a9e7ec7 commit 274bc20

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/proxy/cmsis-dap.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,8 @@ export class CmsisDAP extends EventEmitter implements Proxy {
223223
const length = result.getUint8(1);
224224

225225
if (length === 0) {
226-
throw new Error('DAP Info Failure');
226+
// String information is not set
227+
return '';
227228
}
228229

229230
switch (request) {

0 commit comments

Comments
 (0)