The error message of error "LeaseNotPresentWithBlobOperation" in azurite is inconsistent with the one in azure cloud
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 393
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 36
Description
**Error Description:**
The error message of error "LeaseNotPresentWithBlobOperation" in azurite is inconsistent with the one in azure cloud.
In azure, the error is shown as following:

In azurite, the error is shown as following:

**To Reproduce**
Please run the demo code as following:
```
import {
BlobServiceClient
} from "@azure/storage-blob";
import * as assert from "assert"
async function main() {
const blobServiceClient = await BlobServiceClient.fromConnectionString("");
const containerClient = await blobServiceClient.getContainerClient("");
const blockBlobClient = await containerClient.getBlockBlobClient("");
try{
await blockBlobClient.commitBlockList(new Array(),{conditions:{leaseId:}});
}catch(err){
console.log(err);
assert.ok((err as any).response.parsedBody.message.includes("There is currently no lease on the blob"));
}
}
main();
```
**Error Track**
The reason maybe is that the error message of error "LeaseNotPresentWithBlobOperation" which is defined in Azurite is different from the one in Azure. The error "LeaseNotPresentWithBlobOperation" defined in Azurite is shown as following:
[https://github.com/Azure/Azurite/blob/master/src/blob/errors/StorageErrorFactory.ts#L390](https://github.com/Azure/Azurite/blob/master/src/blob/errors/StorageErrorFactory.ts#L390)

**Expected Behavior**
The error message of error "LeaseNotPresentWithBlobOperation" in azurite is consistent with the one in azure cloud.
@jongio for notification.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.