From 2384e54b5af9ecd74c792e84995e976480966cd5 Mon Sep 17 00:00:00 2001 From: "K.S. Yim" Date: Fri, 7 Jan 2022 00:23:37 +0900 Subject: [PATCH] Show server error if 'add file' fails in admin UI --- .../app/entities/repositories/repository.file.new.controller.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/src/main/resources/webapp/scripts/app/entities/repositories/repository.file.new.controller.js b/server/src/main/resources/webapp/scripts/app/entities/repositories/repository.file.new.controller.js index 8cf31eecca..bff4eabc1e 100644 --- a/server/src/main/resources/webapp/scripts/app/entities/repositories/repository.file.new.controller.js +++ b/server/src/main/resources/webapp/scripts/app/entities/repositories/repository.file.new.controller.js @@ -146,6 +146,8 @@ angular.module('CentralDogmaAdmin') NotificationUtil.success('entities.saved_file', { path: $scope.file.path }); $scope.back(); + }, function (error) { + NotificationUtil.error(error); }); }; });