Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
git-backup
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
iv
git-backup
Commits
5f319762
Commit
5f319762
authored
Jun 29, 2016
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
7f72b67b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
error.go
error.go
+3
-3
No files found.
error.go
View file @
5f319762
...
...
@@ -21,7 +21,7 @@ import (
// error type which is raised by raise(arg)
type
Error
struct
{
arg
interface
{}
link
*
Error
link
*
Error
// chain of linked Error(s) - see erraddcontext()
}
func
(
e
*
Error
)
Error
()
string
{
...
...
@@ -81,7 +81,7 @@ func errcatch(f func (e *Error)) {
f
(
e
)
}
// hook into unwi
dnign
process with f() call. Returned error is reraised.
// hook into unwi
nding
process with f() call. Returned error is reraised.
// see also: erraddcontext()
// must be called under defer
func
erronunwind
(
f
func
(
e
*
Error
)
*
Error
)
{
...
...
@@ -104,7 +104,7 @@ func errlinkerror(e *Error, arg interface{}) *Error {
*/
// f is called if error unwin
ing is happen
ning.
// f is called if error unwin
ding is happe
ning.
// call result is added to raised error as "prefix" context
func
erraddcontext
(
f
func
()
interface
{})
{
e
:=
_errcatch
(
recover
())
...
...
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