Skip to content

Commit

Permalink
not pop msg box when parse error
Browse files Browse the repository at this point in the history
  • Loading branch information
github0null committed Jun 11, 2023
1 parent 5d28f9f commit f8ad4c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/WebPanelManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import * as platform from './Platform';
import * as fs from 'fs';
import { EncodingConverter } from "./EncodingConverter";
import { SimpleUIConfig } from "./SimpleUIDef";
import { newMessage } from "./Message";
import { newMessage, ExceptionToMessage } from "./Message";

let _instance: WebPanelManager;

Expand Down Expand Up @@ -326,7 +326,7 @@ export class WebPanelManager {
try {
cmsisConfig = CmsisConfigParser.parse(lines);
} catch (error) {
GlobalEvent.emit('error', error);
GlobalEvent.emit('globalLog', ExceptionToMessage(error, 'Error'));
return; // parse error
}

Expand Down

0 comments on commit f8ad4c5

Please sign in to comment.