Skip to content

Commit

Permalink
Use Linux error codes as fallback when OS error codes are not defined (
Browse files Browse the repository at this point in the history
  • Loading branch information
rohanchandra authored and tvolkert committed Jul 2, 2018
1 parent 15a16a6 commit 34cf2d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/file/lib/src/interface/error_codes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class ErrorCodes {
static int get EXDEV => _platform((_Codes codes) => codes.exdev);

static int _platform(int getCode(_Codes codes)) {
_Codes codes = _platforms[operatingSystem];
_Codes codes = _platforms[operatingSystem] ?? _platforms['linux'];
return getCode(codes);
}
}
Expand Down

0 comments on commit 34cf2d1

Please sign in to comment.