-
-
Notifications
You must be signed in to change notification settings - Fork 423
Add keys generate command #1695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
f014be1
ea0ce60
1c34618
1c6c318
0ff01b7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
TempFileCreationFailedError
to be FileCreationFailedError
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -698,21 +698,22 @@ func (e *TempDirCreationFailedError) ToRPCStatus() *status.Status { | |
return status.New(codes.Unavailable, e.Error()) | ||
} | ||
|
||
// TempFileCreationFailedError is returned if a temp file could not be created | ||
type TempFileCreationFailedError struct { | ||
Cause error | ||
// FileCreationFailedError is returned if a temp file could not be created | ||
umbynos marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
type FileCreationFailedError struct { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As this is an exported object, this will be a breaking change and so the standard procedure should be followed to communicate that to the users. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did not though about it, but you are right |
||
Message string | ||
Cause error | ||
} | ||
|
||
func (e *TempFileCreationFailedError) Error() string { | ||
return composeErrorMsg(tr("Cannot create temp file"), e.Cause) | ||
func (e *FileCreationFailedError) Error() string { | ||
return composeErrorMsg(e.Message, e.Cause) | ||
} | ||
|
||
func (e *TempFileCreationFailedError) Unwrap() error { | ||
func (e *FileCreationFailedError) Unwrap() error { | ||
return e.Cause | ||
} | ||
|
||
// ToRPCStatus converts the error into a *status.Status | ||
func (e *TempFileCreationFailedError) ToRPCStatus() *status.Status { | ||
func (e *FileCreationFailedError) ToRPCStatus() *status.Status { | ||
return status.New(codes.Unavailable, e.Error()) | ||
} | ||
|
||
|