Skip to content
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

refactor(runtime/permissions): use concrete error types #26464

Merged
merged 17 commits into from
Nov 4, 2024

Conversation

crowlKats
Copy link
Member

@crowlKats crowlKats commented Oct 22, 2024

No description provided.

@crowlKats crowlKats marked this pull request as draft October 22, 2024 00:49
@crowlKats crowlKats changed the title Permissions error rework refactor(runtime/permissions): use concrete error types Oct 22, 2024
@crowlKats crowlKats marked this pull request as ready for review October 22, 2024 11:26
Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks okay to me, I'd like to get second pair of eyes on it before we land. @dsherret could you please take a look?

cli/args/flags.rs Outdated Show resolved Hide resolved
Signed-off-by: Leo Kettmeir <[email protected]>
)
.map_err(WebsocketError::Permission)?;
state.borrow_mut::<WP>().check_net_url(
&url::Url::parse(&url).map_err(WebsocketError::Url)?,
Copy link
Member

@dsherret dsherret Oct 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, this shouldn't be parsing/allocating when we have full permissions (I'll look into this later)

Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM other than PrompterError.

# Conflicts:
#	cli/npm/byonm.rs
#	runtime/permissions/lib.rs
@crowlKats crowlKats merged commit fe9f0ee into denoland:main Nov 4, 2024
17 checks passed
@crowlKats crowlKats deleted the permissions-error-rework branch November 4, 2024 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants