fix: improve error handling when a commit is not accessible

This commit is contained in:
tdurieux
2021-09-06 23:06:10 +02:00
parent eaa9656815
commit 6c668e4f86
3 changed files with 17 additions and 9 deletions
+3 -2
View File
@@ -1190,8 +1190,9 @@ angular
}
},
(err) => {
console.log(err);
$scope.files = [];
$scope.type = "error";
$scope.content = err.data.error;
$scope.files = null;
}
);
}