Skip to content

Commit

Permalink
Detailed error for "Cannot access the repository at the moment" #1164
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Jun 8, 2023
1 parent fe0216a commit 1d6be7a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dev/Stores/Admin/Package.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import ko from 'ko';
import { isArray } from 'Common/Utils';
import { getNotification } from 'Common/Translator';
import Remote from 'Remote/Admin/Fetch';

export const PackageAdminStore = ko.observableArray();
Expand All @@ -16,6 +17,11 @@ PackageAdminStore.fetch = () => {
PackageAdminStore.loading(false);
if (iError) {
PackageAdminStore.real(false);
PackageAdminStore.error(getNotification(iError));
// let error = getNotification(iError);
// if (data.message) { error = data.message + error; }
// if (data.reason) { error = data.reason + " " + error; }
// PackageAdminStore.error(error);
} else {
PackageAdminStore.real(!!data.Result.Real);
PackageAdminStore.error(data.Result.Error);
Expand Down

0 comments on commit 1d6be7a

Please sign in to comment.