Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
fusiondirectory
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
52
Issues
52
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
fusiondirectory
fusiondirectory
Commits
c68e01d3
Verified
Commit
c68e01d3
authored
Feb 11, 2020
by
Côme Chilliet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🚑
fix(hooks) Improve error message layout on script failure
issue
#6068
parent
c4f53dae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
include/simpleplugin/class_simplePlugin.inc
include/simpleplugin/class_simplePlugin.inc
+3
-1
No files found.
include/simpleplugin/class_simplePlugin.inc
View file @
c68e01d3
...
...
@@ -1524,8 +1524,10 @@ class simplePlugin implements SimpleTab
@
DEBUG
(
DEBUG_SHELL
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
$command
,
'Execution failed code: '
.
$returnCode
);
@
DEBUG
(
DEBUG_SHELL
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
$command
,
'Output: '
.
$str
);
$message
=
msgPool
::
cmdexecfailed
(
$cmd
,
''
,
get_class
(
$this
));
$message
.
=
'<br/><br/>'
.
"
\n
"
;
$message
.
=
'Exit code: '
.
$returnCode
.
'<br/>'
.
"
\n
"
;
if
(
!
empty
(
$str
))
{
$message
.
=
'Result: '
.
$str
;
$message
.
=
'Result: '
.
$str
.
"
\n
"
;
}
$messages
[]
=
$message
;
}
elseif
(
is_array
(
$arr
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment