Skip to content

Commit

Permalink
Explain context for libsndfile errors
Browse files Browse the repository at this point in the history
If the sound file was not found, user just saw 'System error'
  • Loading branch information
windytan committed Aug 12, 2024
1 parent c9856ae commit e18d759
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* Bug fixes:
* Fix the CSVReader (used in the TMC decoder) ignoring the last line of any file
* Remove extra trailing space in transparent data channels hexdump
* Make raw libsndfile errors user-friendlier (instead of saying 'System error')
* Build system fixes:
* macOS: ask Homebrew about liquid-dsp location instead of hardcoding it
* Set default installation prefix to /usr/local (all platforms)
Expand Down
2 changes: 1 addition & 1 deletion src/redsea.cc
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ int processMPXInput(Options options) {
printUsage();
return EXIT_FAILURE;
} catch (const std::exception& e) {
std::cerr << e.what() << "\n";
std::cerr << "error: Can't open audio file: " << e.what() << "\n";
return EXIT_FAILURE;
}

Expand Down

0 comments on commit e18d759

Please sign in to comment.