Skip to content

Commit

Permalink
Fix wrong deprecation warning with DioErrorType (#1856)
Browse files Browse the repository at this point in the history
The deprecation message was providing a wrong hint.

Signed-off-by: Cristian Zazo <cristian.zazo@gmail.com>
  • Loading branch information
Zazo032 authored Jun 6, 2023
1 parent 8da2886 commit 67b18d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dio/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ See the [Migration Guide][] for the complete breaking changes list.**

## Unreleased

*None.*
- Fix `DioErrorType` deprecation hint.

## 5.2.0

Expand Down
2 changes: 1 addition & 1 deletion dio/lib/src/dio_exception.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'options.dart';
import 'response.dart';

/// Deprecated in favor of [DioExceptionType] and will be removed in future major versions.
@Deprecated('Use DioException instead. This will be removed in 6.0.0')
@Deprecated('Use DioExceptionType instead. This will be removed in 6.0.0')
typedef DioErrorType = DioExceptionType;

/// [DioError] describes the exception info when a request failed.
Expand Down

0 comments on commit 67b18d3

Please sign in to comment.