Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8907446

Browse files
committedDec 18, 2024
Improve error message on Windows
1 parent 1cad7b8 commit 8907446

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ ipcMain.handle('install-package', async (event, aPackage, serialPort, compileFil
9898
console.error(`Failed to install package ${packageDesignator}:`, error);
9999

100100
// Check if error contains "Resource busy" and return a more user-friendly message
101-
if(error.message.includes('Resource busy')) {
101+
if(error.message.includes('Resource busy') || error.message.includes('Access denied')) {
102102
return { success: false, error: "Couldn't connect to the board. Close any other program using it and try again." };
103103
}
104104
return { success: false, error: error.message };

0 commit comments

Comments
 (0)
Please sign in to comment.