Page MenuHomePhabricator

make maintenance/update.php exit(1) so calling scripts can catch errors
Closed, ResolvedPublic

Description

exit(1) on errors


Version: 1.15.x
Severity: minor

Attached:

Details

Reference
bz17948

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:30 PM
bzimport set Reference to bz17948.
bzimport added a subscriber: Unknown Object (MLST).

Consider doing similar at all other die()s throughout MediaWiki.

Often one makes scripts to update many wikis at a time.
Without you returning the correct error value, scripts are unable to detect errors, and will plow along possibly damaging many things.