Skip to content

Commit

Permalink
More descriptive text in error notifications (i.e. show it's from AIM).
Browse files Browse the repository at this point in the history
  • Loading branch information
makyen committed Sep 21, 2018
1 parent cf64210 commit ad85e17
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions autoflagging/autoflagging.user.js
Expand Up @@ -435,7 +435,7 @@
$.get(url, function (flaggingData) {
autoflagging.decorateMessage($element, flaggingData.items[0]);
}).fail(function (xhr) {
autoflagging.notify("Failed to load data:", xhr);
autoflagging.notify("AIM: Failed to load MS flag data:", xhr);
});
} else {
// No autoflags
Expand All @@ -448,7 +448,7 @@
$.get(url, function (feedbackData) {
autoflagging.decorateMessage($element, {feedbacks: feedbackData.items});
}).fail(function (xhr) {
autoflagging.notify("Failed to load data:", xhr);
autoflagging.notify("AIM: Failed to load MS feedback data:", xhr);
});

// Get weight
Expand All @@ -461,7 +461,7 @@
}
autoflagging.decorateMessage($element, {reason_weight: totalWeight});
}).fail(function (xhr) {
autoflagging.notify("Failed to load data:", xhr);
autoflagging.notify("AIM: Failed to load MS reason data:", xhr);
});
});

Expand All @@ -470,7 +470,7 @@
autoflagging.callAPI(urls, ++page);
}
}).fail(function (xhr) {
autoflagging.notify("Failed to load data:", xhr);
autoflagging.notify("AIM: Failed to load MS post data:", xhr);
});
};

Expand Down

0 comments on commit ad85e17

Please sign in to comment.