Skip to content

Commit

Permalink
Update the deprecation warning to be more helpful
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-okeefe committed Mar 22, 2024
1 parent 4e83fe1 commit 4097a22
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/erin_next_toml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ namespace erin_next
std::ostringstream oss{};
oss << "WARNING! field '" << aliasValue.Tag
<< "' is deprecated and will be removed "
<< "in a future version";
<< "in a future version; use '"
<< alias.first << "' instead";
warnings.push_back(
WriteErrorToString(tableName, oss.str())
);
Expand Down
8 changes: 7 additions & 1 deletion src/erin_next_validation.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "erin_next/erin_next_validation.h"
#include "erin_next/erin_next_valdata.h"
#include <unordered_set>
#include <unordered_map>
#include <vector>
Expand Down Expand Up @@ -505,7 +506,12 @@ namespace erin_next
.IsRequired = true,
.Default = "",
.EnumValues = {},
.Aliases = {},
.Aliases = {
TagWithDeprication{
.Tag = "stream",
.IsDeprecated = true,
},
},
.Sections = {
InputSection::Components_Mux,
InputSection::Components_PassThrough,
Expand Down

0 comments on commit 4097a22

Please sign in to comment.