Skip to content

Commit

Permalink
Improved error messages when the environment creation fails
Browse files Browse the repository at this point in the history
  • Loading branch information
salvadordf committed Apr 9, 2022
1 parent 0e3f73c commit e9fbb95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion source/uWVMiscFunctions.pas
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ function EnvironmentCreationErrorToString(aErrorCode : HRESULT) : wvstring;
Result := 'Could not find Edge installation.'
else
if (aErrorCode = HResultFromWin32(ERROR_FILE_EXISTS)) then
Result := 'User data folder cannot be created because a file with the same name already exists.';
Result := 'User data folder cannot be created because a file with the same name already exists.'
else
Result := 'Unexpected error result.';
end;
end;

Expand Down
2 changes: 1 addition & 1 deletion update_WebView4Delphi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"UpdateLazPackages" : [
{
"ForceNotify" : true,
"InternalVersion" : 49,
"InternalVersion" : 50,
"Name" : "webview4delphi.lpk",
"Version" : "1.0.1150.38"
}
Expand Down

0 comments on commit e9fbb95

Please sign in to comment.