Asset Bundler - Minor Feedback (#550)
Asset Bundler - Minor Feedback * updated the formatting so all lines are shorter than 140 characters * fixed a few nitpicks that came up on a recent PR * removed a function that wasn't being used anymore * updated some error messages based on PR feedback
This commit is contained in:
@@ -73,14 +73,15 @@ namespace AssetBundler
|
||||
{
|
||||
if (AZ::IO::FileIOBase::GetInstance()->IsReadOnly(absolutePath))
|
||||
{
|
||||
AZ_Error(AssetBundler::AppWindowName, false, "File (%s) is Read-Only. Please check your version control and try again.", absolutePath);
|
||||
AZ_Error(AssetBundler::AppWindowName, false, ReadOnlyFileErrorMessage, absolutePath);
|
||||
return false;
|
||||
}
|
||||
|
||||
auto deleteResult = AZ::IO::FileIOBase::GetInstance()->Remove(absolutePath);
|
||||
if (!deleteResult)
|
||||
{
|
||||
AZ_Error(AssetBundler::AppWindowName, false, "Unable to delete: %s", absolutePath);
|
||||
AZ_Error(AssetBundler::AppWindowName, false,
|
||||
"Unable to delete (%s). Result code: %u", absolutePath, deleteResult.GetResultCode());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -175,7 +176,10 @@ namespace AssetBundler
|
||||
return Column::ColumnFileCreationTime;
|
||||
}
|
||||
|
||||
void BundleFileListModel::LoadFile(const AZStd::string& absoluteFilePath, const AZStd::string& /*projectName*/, bool /*isDefaultFile*/)
|
||||
void BundleFileListModel::LoadFile(
|
||||
const AZStd::string& absoluteFilePath,
|
||||
const AZStd::string& /*projectName*/,
|
||||
bool /*isDefaultFile*/)
|
||||
{
|
||||
AZStd::string key = AssetBundler::GenerateKeyFromAbsolutePath(absoluteFilePath);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user