Skip to content

Commit

Permalink
Return empty string when length is 0 in dapInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
thegecko committed Jun 29, 2020
1 parent a9e7ec7 commit 274bc20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/proxy/cmsis-dap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ export class CmsisDAP extends EventEmitter implements Proxy {
const length = result.getUint8(1);

if (length === 0) {
throw new Error('DAP Info Failure');
// String information is not set
return '';
}

switch (request) {
Expand Down

0 comments on commit 274bc20

Please sign in to comment.