Skip to content

Commit

Permalink
improved error message upon wrong mimetype
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpapst committed Dec 25, 2023
1 parent 62c1dc3 commit 693ac51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Compatibility: requires minimum Kimai 2.5.0

- Added: new created users during import require to change password
- Changed: Improved error message upon wrong mimetype

## Version 2.7.0

Expand Down
2 changes: 1 addition & 1 deletion Importer/ImporterService.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function import(ImportModel $model, string $importer): ImportData
}

throw new ImportException(
sprintf('Unsupported file given, invalid mimetype (%s). Try to use another browser.', $mimetype)
sprintf('Unsupported file given, invalid mimetype (%s / %s). Try to use another browser.', $mimetype, $userMimetype)
);
}

Expand Down

0 comments on commit 693ac51

Please sign in to comment.