File tree 3 files changed +23
-2
lines changed
.github/actions/spelling/allow
src/cascadia/TerminalConnection
3 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ colorbrewer
11
11
commandlines
12
12
consvc
13
13
copyable
14
+ CText
14
15
dalet
15
16
dcs
16
17
deselection
Original file line number Diff line number Diff line change @@ -428,6 +428,20 @@ namespace winrt::Microsoft::Terminal::TerminalConnection::implementation
428
428
TerminalOutput.raise (L" \r\n " );
429
429
TerminalOutput.raise (badPathText);
430
430
}
431
+ // If the requested action requires elevation, display appropriate message
432
+ else if (hr == HRESULT_FROM_WIN32 (ERROR_ELEVATION_REQUIRED))
433
+ {
434
+ const auto elevationText = RS_ (L" ElevationRequired" );
435
+ TerminalOutput.raise (L" \r\n " );
436
+ TerminalOutput.raise (elevationText);
437
+ }
438
+ // If the requested executable was not found, display appropriate message
439
+ else if (hr == HRESULT_FROM_WIN32 (ERROR_FILE_NOT_FOUND))
440
+ {
441
+ const auto fileNotFoundText = RS_ (L" FileNotFound" );
442
+ TerminalOutput.raise (L" \r\n " );
443
+ TerminalOutput.raise (fileNotFoundText);
444
+ }
431
445
432
446
_transitionToState (ConnectionState::Failed);
433
447
Original file line number Diff line number Diff line change 209
209
</data >
210
210
<data name =" CtrlDToClose" xml : space =" preserve" >
211
211
<value >You can now close this terminal with Ctrl+D, or press Enter to restart.</value >
212
- <comment >"Ctrl+D" and "Enter" represent keys the user will press (control+D and Enter).</comment >
212
+ <comment >"Ctrl+D" and "Enter" represent keys the user will press (control+D and Enter).</comment >
213
213
</data >
214
214
<data name =" ProcessFailedToLaunch" xml : space =" preserve" >
215
215
<value >[error {0} when launching `{1}']</value >
220
220
<value >Could not access starting directory "{0}"</value >
221
221
<comment >The first argument {0} is a path to a directory on the filesystem, as provided by the user.</comment >
222
222
</data >
223
- </root >
223
+ <data name =" ElevationRequired" xml : space =" preserve" >
224
+ <value >The requested operation requires elevation.</value >
225
+ </data >
226
+ <data name =" FileNotFound" xml : space =" preserve" >
227
+ <value >The system cannot find the file specified.</value >
228
+ </data >
229
+ </root >
You can’t perform that action at this time.
0 commit comments