Skip to content

Commit 7d36bd8

Browse files
gialludregad
authored andcommittedSep 24, 2012
Add plugins installation error code and message
Backport from master 1ca2199 Fixes #11029
1 parent e843371 commit 7d36bd8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

‎core/constant_inc.php

+1
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@
370370
define( 'ERROR_PLUGIN_ALREADY_INSTALLED', 2501 );
371371
define( 'ERROR_PLUGIN_PAGE_NOT_FOUND', 2502 );
372372
define( 'ERROR_PLUGIN_UPGRADE_FAILED', 2503 );
373+
define( 'ERROR_PLUGIN_INSTALL_FAILED', 2504 );
373374
define( 'ERROR_PLUGIN_GENERIC', 2599 );
374375

375376
# ERROR_COLUMNS_*

‎lang/strings_english.txt

+1
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ $MANTIS_ERROR[ERROR_EVENT_UNDECLARED] = 'Event "%1$s" has not yet been declared.
288288
$MANTIS_ERROR[ERROR_PLUGIN_NOT_REGISTERED] = 'Plugin is not registered with MantisBT.';
289289
$MANTIS_ERROR[ERROR_PLUGIN_ALREADY_INSTALLED] = 'Plugin is already installed.';
290290
$MANTIS_ERROR[ERROR_PLUGIN_PAGE_NOT_FOUND] = 'Plugin page not found.';
291+
$MANTIS_ERROR[ERROR_PLUGIN_INSTALL_FAILED] = 'Plugin installation failed: %1$s.';
291292
$MANTIS_ERROR[ERROR_PLUGIN_UPGRADE_FAILED] = 'Upgrading the plugin schema failed in block #%1$s.';
292293
$MANTIS_ERROR[ERROR_PLUGIN_GENERIC] = 'There was an unknown error "%1$s" during execution of the "%2$s" plugin.';
293294
$MANTIS_ERROR[ERROR_COLUMNS_DUPLICATE] = 'Field "%1$s" contains duplicate column "%2$s".';

0 commit comments

Comments
 (0)