Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Kazuhiko Shiozaki
gitlab-ce
Commits
9e7a88f0
Commit
9e7a88f0
authored
Dec 30, 2015
by
Mike Wyatt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better handling of errors in Asana service
[ci skip]
parent
7b98d0e1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
app/models/project_services/asana_service.rb
app/models/project_services/asana_service.rb
+8
-9
No files found.
app/models/project_services/asana_service.rb
View file @
9e7a88f0
...
...
@@ -111,17 +111,16 @@ http://app.asana.com/-/account_api'
begin
task
=
Asana
::
Task
.
find_by_id
(
client
,
taskid
)
rescue
Exception
=>
e
puts
e
.
message
puts
e
.
backtrace
.
inspect
next
end
task
.
add_comment
(
text:
"
#{
push_msg
}
#{
message
}
"
)
if
tuple
[
0
]
task
.
update
(
completed:
true
)
end
rescue
=>
e
Rails
.
logger
.
error
(
e
.
message
)
Rails
.
logger
.
error
(
e
.
backtrace
.
join
(
"
\n
"
))
next
end
end
end
end
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