mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-27 17:50:06 +00:00
Include the bad timestamp string in the error when unable to parse it
Change-Id: I0a79c25baf829f755aa5d251a78e032a12168364
This commit is contained in:
parent
1000d322e5
commit
f032e847bf
|
@ -373,7 +373,7 @@ class LanguageLibrary extends LibraryBase {
|
|||
$utc = new DateTimeZone( 'UTC' );
|
||||
$dateObject = new DateTime( $date, $utc );
|
||||
} catch ( Exception $ex ) {
|
||||
throw new LuaError( "bad argument #2 to 'formatDate' (not a valid timestamp)" );
|
||||
throw new LuaError( "bad argument #2 to 'formatDate': invalid timestamp '$date'" );
|
||||
}
|
||||
|
||||
# Set output timezone.
|
||||
|
|
Loading…
Reference in a new issue