in src/app/files/files.service.ts [324:351]
public handleError(e, path: string=null) {
if (e.status) {
if (e.status === 403 && e.title && e.title.toLowerCase() == 'forbidden') {
// This is called on webserver file system page
// TODO: unify 403 handling
if (!e.message) {
if (path) {
e.message = `Access denied on path: ${path}. Please go to [Web Server]/[File System] to verify IIS File System Mapping to ensure sufficient access for this operation.`;
} else {
e.message = `Access denied. Please go to [Web Server]/[File System] to verify IIS File System Mapping to ensure sufficient access for this operation.`;
}
}
}
else if ((e.status === 404 || e.status == 400) && e.name && (e.name.toLowerCase() == 'path' || e.name.toLowerCase() == 'physical_path')) {
e.message = "Path not found\n\n" + (path || "");
}
else if (e.status == 409) {
e.message = "Already exists\n\n" + (path || "");
}
else if (e.status == 403 && e.title && e.title.toLowerCase() == 'object is locked') {
e.message = "File in use\n\n" + (path || "");
}
this._notificationService.apiError(e);
}
this._progress.next(this._progress.getValue());
}