File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -385,6 +385,13 @@ declare global {
385385 * Given an API response indicating an error, get a jQuery object containing a human-readable
386386 * error message that you can display somewhere on the page.
387387 *
388+ * This method handles the different error formats returned by the action API itself, and some
389+ * error conditions that may occur at other layers, e.g. user losing their network connection,
390+ * server being down, rate limits enforced by a proxy in front of MediaWiki, etc.
391+ *
392+ * Error messages, particularly for editing pages, may consist of multiple paragraphs of text.
393+ * Your user interface should have enough space for that.
394+ *
388395 * For better quality of error messages, it's recommended to use the following options in your
389396 * API queries:
390397 *
@@ -394,9 +401,6 @@ declare global {
394401 * errorsuselocal: true,
395402 * ```
396403 *
397- * Error messages, particularly for editing pages, may consist of multiple paragraphs of text.
398- * Your user interface should have enough space for that.
399- *
400404 * @example
401405 * ```js
402406 * var api = new mw.Api();
Original file line number Diff line number Diff line change @@ -224,10 +224,7 @@ declare global {
224224
225225 /**
226226 * Adjust the thumbnail size to fit the width steps defined in config via
227- * config.ThumbnailSteps, according to whether config.ThumbnailStepsRatio
228- * is set.
229- *
230- * This logic is duplicated server-side in File::adjustThumbWidthForSteps.
227+ * config.ThumbnailSteps, according to whether config.ThumbnailStepsRatio is set.
231228 *
232229 * @since 1.46
233230 * @param thumbWidth Target width in pixels.
You can’t perform that action at this time.
0 commit comments