Fix exception on bad plugin load
This commit is contained in:
parent
8e07926a9c
commit
e8275aa60a
@ -63,7 +63,7 @@ class StatusNet
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!class_exists($pluginclass)) {
|
if (!class_exists($pluginclass)) {
|
||||||
throw new ServerException(500, "Plugin $name not found.");
|
throw new ServerException("Plugin $name not found.", 500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user