mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACA-4288] Fix API errors from logs (#2006)
* Add API login in afterAll - part 1 * viewer,infoDrawer,extensions - afterAll API login * deleteActions - afterAll API login * Improve before and after methods * add Promise type to methods - part1 * remove unneeded done() method and add try-catch * delete wrong import * Login through API * small change over log errors * small improvement over the logs
This commit is contained in:
@@ -142,7 +142,7 @@ export class Utils {
|
||||
if (fileExists) {
|
||||
fs.rename(oldFilePath, newFilePath, function (err: any) {
|
||||
if (err) {
|
||||
Logger.error('==== rename err: ', err);
|
||||
Logger.error(`==== rename err : failed to rename file from ${oldName} to ${newName} : `, err);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -159,7 +159,7 @@ export class Utils {
|
||||
});
|
||||
|
||||
await zip.on('error', (err: any) => {
|
||||
Logger.error('=== unzip err: ', err);
|
||||
Logger.error(`=== unzip err : failed to unzip ${filename} - ${unzippedName} :`, err);
|
||||
});
|
||||
|
||||
await zip.on('ready', async () => {
|
||||
|
Reference in New Issue
Block a user