Skip to content

Error handling in mapping utilities is not user-friendly #9

@krassowski

Description

@krassowski

if (!all(c(input.type) %in% colnames(id.mapping.table))) {
message(input.type, " must be in column names of id.mapping.table!\n")
message("Column names of id.mapping.table are:\n")
cat(colnames(id.mapping.table), "\n\n\n\n")
stop()
}
if (!all(c(output.type) %in% colnames(id.mapping.table))) {
message(output.type, " must be in column names of id.mapping.table!\n")
message("Column names of id.mapping.table are:\n")
cat(colnames(id.mapping.table), "\n\n\n\n")
stop()
}

has bare stop(). Because of #4 I was using suppressMessages(SBGNview()) and getting no error messages. The error message could be pasted and moved into stop().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions