You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The process for updating a call to .unknown() is (as described in #249):
Add a new entry to the ErrorDetails enum, including information you need for the error message if necessary.
Update the match block in the impl Display for ErrorDetails block to include the error message for the new error.
Update the match block in the impl NotionFail for ErrorDetails block to return the correct ExitCode for the new error.
Replace any .unknown() calls that should wrap an failure in the new error with a .with_context(|error| ErrorDetails::NewError) call, setting any contextual values needed.
The text was updated successfully, but these errors were encountered:
Tracking the progress of improving the error messages to make them more user-friendly and helpful.
Tasks
.unknown()
indistro
module #296 Update calls to.unknown
indistro
module (PR: Rework remaining errors #344).unknown()
inevent
module #297 Update calls to.unknown
inevent
module (PR: Rework unknown errors in event module #337).unknown()
infs
module #298 Update calls to.unknown
infs
module (PR: Rework remaining errors #344).unknown()
inhook
module #299 Update calls to.unknown
inhook
module (PR: Rework remaining errors #344).unknown()
ininventory
module #300 Update calls to.unknown
ininventory
module (PR: Rework remaining errors #344).unknown()
inmanifest
module #301 Update calls to.unknown
inmanifest
module (PR: Rework unknown errors in manifest module #342).unknown()
inplatform
module #302 Update calls to.unknown
inplatform
module (PR: Rework unknown errors in platform module #338).unknown()
inproject
module #303 Update calls to.unknown
inproject
module (PR: Rework unknown errors in project module #339).unknown()
inshell
module #304 Update calls to.unknown
inshell
module (PR: Rework unknown errors in shell module #340).unknown()
intoolchain
module #305 Update calls to.unknown
intoolchain
module (PR: Rework remaining errors #344).unknown()
helper method #306 Remove.unknown()
helperunimplemented!
macro #359 Removeunimplemented!
and other macros that cause a panic (PR: Replace unimplemented macro with ErrorDetails variant #399)Notes
The process for updating a call to
.unknown()
is (as described in #249):ErrorDetails
enum, including information you need for the error message if necessary.match
block in theimpl Display for ErrorDetails
block to include the error message for the new error.match
block in theimpl NotionFail for ErrorDetails
block to return the correctExitCode
for the new error..unknown()
calls that should wrap an failure in the new error with a.with_context(|error| ErrorDetails::NewError)
call, setting any contextual values needed.The text was updated successfully, but these errors were encountered: