Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
pamac
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
154
Issues
154
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Applications
pamac
Commits
e5214474
Commit
e5214474
authored
Sep 16, 2018
by
guinux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve error display
parent
9750a32d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
9 deletions
+5
-9
src/transaction-cli.vala
src/transaction-cli.vala
+1
-4
src/transaction-gtk.vala
src/transaction-gtk.vala
+3
-4
src/transaction.vala
src/transaction.vala
+1
-1
No files found.
src/transaction-cli.vala
View file @
e5214474
...
...
@@ -161,10 +161,7 @@ namespace Pamac {
void
print_error
(
string
message
,
string
[]
details
)
{
display_current_line
();
if
(
downloading
)
{
// when downloading errors have no details
stdout
.
printf
(
"%s\n"
,
message
);
}
else
if
(
details
.
length
>
0
)
{
if
(
details
.
length
>
0
)
{
if
(
details
.
length
==
1
)
{
stdout
.
printf
(
"%s: %s: %s\n"
,
dgettext
(
null
,
"Error"
),
message
,
details
[
0
]);
}
else
{
...
...
src/transaction-gtk.vala
View file @
e5214474
...
...
@@ -75,6 +75,7 @@ namespace Pamac {
emit_hook_progress
.
connect
(
display_hook_progress
);
emit_script_output
.
connect
(
show_in_term
);
emit_warning
.
connect
((
msg
)
=>
{
show_in_term
(
msg
);
warning_textbuffer
.
append
(
msg
+
"\n"
);
});
emit_error
.
connect
(
display_error
);
...
...
@@ -455,10 +456,6 @@ namespace Pamac {
box
.
add
(
scrolledwindow
);
dialog
.
default_width
=
600
;
dialog
.
default_height
=
300
;
dialog
.
show
();
dialog
.
response
.
connect
(()
=>
{
dialog
.
destroy
();
});
Timeout
.
add
(
1000
,
()
=>
{
try
{
var
notification
=
new
Notify
.
Notification
(
dgettext
(
null
,
"Package Manager"
),
...
...
@@ -470,6 +467,8 @@ namespace Pamac {
}
return
false
;
});
dialog
.
run
();
dialog
.
destroy
();
}
void
on_refresh_finished
(
bool
success
)
{
...
...
src/transaction.vala
View file @
e5214474
...
...
@@ -690,7 +690,7 @@ namespace Pamac {
line
=
dgettext
(
null
,
"Error"
)
+
": "
+
msg
;
}
important_details_outpout
(
false
);
emit_
error
(
line
.
replace
(
"\n"
,
""
),
{}
);
emit_
warning
(
line
.
replace
(
"\n"
,
""
)
);
}
else
if
(
level
==
(
1
<<
1
))
{
//Alpm.LogLevel.WARNING
// warnings when no_confirm_commit should already have been sent
if
(
no_confirm_commit
)
{
...
...
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