dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a874cf
)
Throw exception in importDump instead of dumping a random backtrace and erroring
author
Chad Horohoe
<chadh@wikimedia.org>
Thu, 24 Jul 2014 00:47:10 +0000
(17:47 -0700)
committer
Chad Horohoe
<chadh@wikimedia.org>
Mon, 28 Jul 2014 22:25:57 +0000
(15:25 -0700)
Change-Id: I2387168d96c3fd15299376c50521fd6f0710ce65
maintenance/importDump.php
patch
|
blob
|
history
diff --git
a/maintenance/importDump.php
b/maintenance/importDump.php
index
1fedefb
..
1f75bcc
100644
(file)
--- a/
maintenance/importDump.php
+++ b/
maintenance/importDump.php
@@
-141,8
+141,7
@@
TEXT;
} elseif ( $obj instanceof WikiRevision ) {
$ns = $obj->title->getNamespace();
} else {
- echo wfBacktrace();
- $this->error( "Cannot get namespace of object in " . __METHOD__, true );
+ throw new MWException( "Cannot get namespace of object in " . __METHOD__ );
}
return is_array( $this->nsFilter ) && !in_array( $ns, $this->nsFilter );