Archived
Trigger ItemFinished when temp file creation fails instead of failing silently
This commit is contained in:
1 parent
e952da7f91
commit
c1761cab49
4 files changed
+114
-67
No files matched your search
@@ -258,3 +258,14 @@ func (s *BufferedSubscription) Since(id int, into []Event) []Event {
|
||||
|
||||
return into
|
||||
}
|
||||
|
||||
// Error returns a string pointer suitable for JSON marshalling errors. It
|
||||
// retains the "null on sucess" semantics, but ensures the error result is a
|
||||
// string regardless of the underlying concrete error type.
|
||||
func Error(err error) *string {
|
||||
if err == nil {
|
||||
return nil
|
||||
}
|
||||
str := err.Error()
|
||||
return &str
|
||||
}
|
||||
Reference in new issue
Block a user