error name and documentation consistency.

Signed-off-by: Mert Can Bilgiç <mert.bilgic@trendyol.com>
This commit is contained in:
erdoganoksuz
2021-03-02 11:53:28 +03:00
committed by Mert Can Bilgiç
parent aa095e469f
commit 7bf88b4f31
2 changed files with 3 additions and 3 deletions
@@ -54,7 +54,7 @@ class PkgCloudStorageClient {
callback: (err: string, container: string) => any,
) {
if (containerName !== 'mock') {
callback("Container doesn't exist", containerName);
callback('Container does not exist', containerName);
throw new Error('Container does not exist');
} else {
callback('Container does not exist', 'success');