Skip to content

Commit

Permalink
abpframework#18391 - corrected some messages to return proper english
Browse files Browse the repository at this point in the history
  • Loading branch information
gentledepp committed Dec 6, 2023
1 parent 997a6e0 commit e301f59
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public class BlobContainer : IBlobContainer
{
//TODO: Consider to throw some type of "not found" exception and handle on the HTTP status side
throw new AbpException(
$"Could not found the requested BLOB '{name}' in the container '{ContainerName}'!");
$"Could not find the requested BLOB '{name}' in the container '{ContainerName}'!");
}

return stream;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"DefaultErrorMessage403": "You are not authorised!",
"DefaultErrorMessage403Detail": "You are not allowed to perform this operation!",
"DefaultErrorMessage404": "Resource not found!",
"DefaultErrorMessage404Detail": "The resource requested could not found on the server!",
"DefaultErrorMessage404Detail": "The resource requested could not be found on the server!",
"EntityNotFoundErrorMessage": "There is no entity {0} with id = {1}!",
"Error": "Error",
"UnhandledException": "Unhandled exception!",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"DefaultErrorMessage403": "You are not authorized!",
"DefaultErrorMessage403Detail": "You are not allowed to perform this operation!",
"DefaultErrorMessage404": "Resource not found!",
"DefaultErrorMessage404Detail": "The resource requested could not found on the server!",
"DefaultErrorMessage404Detail": "The resource requested could not be found on the server!",
"EntityNotFoundErrorMessage": "There is no entity {0} with id = {1}!",
"AbpDbConcurrencyErrorMessage": "The data you have submitted has already changed by another user/client. Please discard the changes you've done and try from the beginning.",
"Error": "Error",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public class ApiDescriptionFinder : IApiDescriptionFinder, ITransientDependency
}
}

throw new AbpException($"Could not found remote action for method: {method} on the URL: {baseUrl}");
throw new AbpException($"Could not find remote action for method: {method} on the URL: {baseUrl}");
}

public virtual async Task<ApplicationApiDescriptionModel> GetApiDescriptionAsync(HttpClient client, string baseUrl)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public async Task Should_Save_And_Get_Blobs_In_Different_Tenant()

using (CurrentTenant.Change(null))
{
// Could not found the requested BLOB...
// Could not find the requested BLOB...
await Assert.ThrowsAsync<AbpException>(async () =>
await Container.GetAllBytesAsync(blobName)
);
Expand Down

0 comments on commit e301f59

Please sign in to comment.