Skip to content

Commit

Permalink
Revert "Fix: nushell at 0.88.0 start and end are deprecated (#698)"
Browse files Browse the repository at this point in the history
This reverts commit 2503468.
  • Loading branch information
fdncred committed Dec 14, 2023
1 parent 2503468 commit d440bfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/weather/get-weather.nu
Original file line number Diff line number Diff line change
Expand Up @@ -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, span: $span } } }
error make {msg: $msg, label: {text: $label, start: $span.start, end: $span.end } }
}

def get_weather_by_ip [locIdx: int, units: string, token: string] {
Expand Down

0 comments on commit d440bfc

Please sign in to comment.