Skip to content

Commit 4655bf6

Browse files
authored
Merge pull request microsoft#1753 from iclanton/ianc/improve-error-message
[rush] Improve phrasing of an error message.
2 parents 12fe75e + 6a247f0 commit 4655bf6

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

apps/rush-lib/src/utilities/Utilities.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export class Utilities {
203203
(e) => new Error(
204204
`Error: ${e}${os.EOL}Often this is caused by a file lock ` +
205205
'from a process such as your text editor, command prompt, ' +
206-
'or "gulp serve"'
206+
'or a filesystem watcher.'
207207
),
208208
'createFolderWithRetry'
209209
);
@@ -246,8 +246,10 @@ export class Utilities {
246246
try {
247247
FileSystem.deleteFolder(folderPath);
248248
} catch (e) {
249-
throw new Error(e.message + os.EOL + 'Often this is caused by a file lock'
250-
+ ' from a process such as your text editor, command prompt, or "gulp serve"');
249+
throw new Error(
250+
`${e.message}${os.EOL}Often this is caused by a file lock from a process ` +
251+
'such as your text editor, command prompt, or a filesystem watcher'
252+
);
251253
}
252254
}
253255

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@microsoft/rush",
5+
"comment": "Improve phrasing of an error message.",
6+
"type": "none"
7+
}
8+
],
9+
"packageName": "@microsoft/rush",
10+
"email": "iclanton@users.noreply.github.com"
11+
}

0 commit comments

Comments
 (0)