Fix: nushell at 0.88.0 start and end are deprecated (#698)

This resolves: #697
This commit is contained in:
张亚飞 2023-12-14 20:40:44 +08:00 committed by GitHub
parent af92dca520
commit 2503468725
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,7 @@ def get_location_by_ip [locIdx: int, token: string] {
def show-error [msg label err] {
let span = (metadata $err).span;
error make {msg: $msg, label: {text: $label, start: $span.start, end: $span.end } }
error make {msg: $msg, label: {text: $label, span: $span } } }
}
def get_weather_by_ip [locIdx: int, units: string, token: string] {